chore: change devMessage on error
This commit is contained in:
parent
3814dca548
commit
7f934454a9
1 changed files with 1 additions and 1 deletions
|
|
@ -259,7 +259,7 @@ export class BranchController extends Controller {
|
|||
}
|
||||
|
||||
if (record.status === Status.USED) {
|
||||
throw new HttpError(HttpStatus.FORBIDDEN, "Branch is in used.", "data_exists");
|
||||
throw new HttpError(HttpStatus.FORBIDDEN, "Branch is in used.", "data_in_used");
|
||||
}
|
||||
|
||||
return await prisma.branch.delete({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue