If I run drush @self bb db destinationname profilename, and the destination or profile name does not exist, I get errors and the command is not run, but the exit status is 0. This means if this command is run systematically within a script, the later commands will still be run even if the backups were never created (oops).

Any idea why this could be? Is there anything in particular I can test to help debug this issue?

Comments

ronan’s picture

Status: Active » Fixed

Looks like I can trigger an error by using drush_set_message instead of drush_log. Easy enough. Fixed now. Thanks!

  • ronan committed 53cdfba on 7.x-3.x
    Issue #2477503: Error returned, but exit status is 0
    

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.