Skip to content

Commit

Permalink
Add 'stdErr' output to exception message - issue #56
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianfeldmann committed Feb 11, 2016
1 parent 7ea7eb8 commit c714380
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Backup/Source/Mongodump.php
Expand Up @@ -160,7 +160,7 @@ public function backup(Target $target, Result $result)
$result->debug($mongodump->getCmd());

if (!$mongodump->wasSuccessful()) {
throw new Exception('Mongodump failed');
throw new Exception('mongodump failed: ' . $mongodump->getStdErr());
}

return $this->createStatus($target);
Expand Down

0 comments on commit c714380

Please sign in to comment.