Skip to content

Commit

Permalink
revert error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
Junjiequan committed Jan 7, 2025
1 parent 3b2f436 commit a031fb3
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/instruments/instruments.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,13 +143,10 @@ export class InstrumentsController {
updateInstrumentDto,
);
return instrument;
} catch (error) {
} catch (e) {
throw new HttpException(
"Instrument with the same unique name already exists",
HttpStatus.BAD_REQUEST,
{
cause: error,
},
);
}
}
Expand Down

0 comments on commit a031fb3

Please sign in to comment.