diff options
Diffstat (limited to 'packages/trpc')
| -rw-r--r-- | packages/trpc/models/lists.ts | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/packages/trpc/models/lists.ts b/packages/trpc/models/lists.ts index 4da127d2..21b23593 100644 --- a/packages/trpc/models/lists.ts +++ b/packages/trpc/models/lists.ts @@ -260,10 +260,8 @@ export class ManualList extends List { } catch (e) { if (e instanceof SqliteError) { if (e.code == "SQLITE_CONSTRAINT_PRIMARYKEY") { - throw new TRPCError({ - code: "BAD_REQUEST", - message: `Bookmark ${bookmarkId} is already in the list ${this.list.id}`, - }); + // this is fine, it just means the bookmark is already in the list + return; } } throw new TRPCError({ |
