From bed40e1e685fdb4b949385fcc03b0bee950c9a70 Mon Sep 17 00:00:00 2001 From: kmetin Date: Mon, 6 Nov 2023 12:05:13 +0300 Subject: [PATCH] add migration canceled by the user error message --- base/commands/migration/migration_stages.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/base/commands/migration/migration_stages.go b/base/commands/migration/migration_stages.go index 4c945f82..7d699de4 100644 --- a/base/commands/migration/migration_stages.go +++ b/base/commands/migration/migration_stages.go @@ -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)