Modify ↓
Ticket #282 (closed enhancement: fixed)
Have migrate command exit with an error code in the case of migration failure
| Reported by: | jonasnockert@… | Owned by: | andrew |
|---|---|---|---|
| Priority: | minor | Milestone: | 0.7 |
| Component: | commands | Version: | 0.6.2 |
| Keywords: | Cc: |
Description
I'm running South migrations by means of a Fabric deployment script.
Fabric throws an exception whenever a command it executes returns anything else than 0. This is a very practical feature as you can make deployment stop as soon as something goes wrong, like your django tests failing for example.
If South could return an error code in the case of a migration failure, it would be more useful when used from Fabric.
Of course, it's entirely possible to look for strings like "Aborting." in South's output as a work-around.
Thanks for all the work on South by the way, it's great!
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

I entirely agree; startmigration (or rather, its new replacement) has just gained error codes recently, so I'll add them into migrate as well.