fix
This commit is contained in:
parent
bb460a1785
commit
c3db55b5b6
2 changed files with 8 additions and 1 deletions
|
@ -70,6 +70,8 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
|
|||
} catch (e) {
|
||||
if (e instanceof ClipService.NoSuchClipError) {
|
||||
throw new ApiError(meta.errors.noSuchClip);
|
||||
} else if (e instanceof ClipService.NoSuchNoteError) {
|
||||
throw new ApiError(meta.errors.noSuchNote);
|
||||
} else if (e instanceof ClipService.AlreadyAddedError) {
|
||||
throw new ApiError(meta.errors.alreadyClipped);
|
||||
} else if (e instanceof ClipService.TooManyClipNotesError) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue