Skip to content

Commit 8b03313

Browse files
committed
chore: move validate outside of rollback catch block
1 parent 4bce411 commit 8b03313

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

packages/amplify-cli/src/commands/gen2-migration.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,10 @@ export const run = async (context: $TSContext) => {
5151

5252
const implementation: AmplifyMigrationStep = new step.class(context);
5353

54+
printer.info('Validating');
55+
await implementation.validate();
56+
5457
try {
55-
printer.info('Validating');
56-
await implementation.validate();
5758
printer.info('Executing');
5859
await implementation.execute();
5960
} catch (error: unknown) {

0 commit comments

Comments
 (0)