Catch errors
Actually print out errors
Merge pull request #4792 from dimagi/catch-error-migration

Catch errors