raise exceptions on migration failure