Adding error reporting for failed migrations