Skip to content

Commit

Permalink
add migration canceled by the user error message
Browse files Browse the repository at this point in the history
  • Loading branch information
kutluhanmetin committed Nov 6, 2023
1 parent 6a70329 commit bed40e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion base/commands/migration/migration_stages.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ func createMigrationStages(ctx context.Context, ec plug.ExecContext, ci *hazelca
execErr = errors.New(errs)
break statusReaderLoop
case StatusCanceled, StatusCanceling:
execErr = clcerrors.ErrUserCancelled
execErr = errors.New("migration canceled by the user")
break statusReaderLoop
}
q := fmt.Sprintf(`SELECT JSON_QUERY(this, '$.migrations[%d]') FROM %s WHERE __key= '%s'`, i, StatusMapName, migrationID)
Expand Down

0 comments on commit bed40e1

Please sign in to comment.