Cloud migrations: return errutil.Error in http responses (#87448)
This commit is contained in:
1 parent
6a3ab71d77
commit
14ccf7f6d1
3 files changed
+19
-19
No files matched your search
@@ -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
|
||||
})
|
||||
|
||||
Reference in new issue
Block a user