Cloud migrations: return errutil.Error in http responses (#87448)

This commit is contained in:
Bruno
2024-05-13 00:22:46 -04:00
committed by GitHub
parent 6a3ab71d77
commit 14ccf7f6d1
3 changed files with 19 additions and 19 deletions
@@ -110,7 +110,7 @@ func (ss *sqlStore) DeleteMigration(ctx context.Context, uid string) (*cloudmigr
ID: id,
})
if affected == 0 {
return cloudmigration.ErrMigrationNotDeleted.Errorf("0 affected rows for id %d", id)
return cloudmigration.ErrMigrationNotDeleted
}
return err
})