Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion lib/repository/repository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,11 @@ export class Repository<T extends Entity = Record<string, any>> {
/* NOTE: It would be better if this error handler was only around the call
to `.dropIndex`. Might muss up the code a bit though. Life is full of
tough choices. */
if (e instanceof Error && (e.message === "Unknown Index name" || e.message === "Unknown index name")) {
if (e instanceof Error && (
e.message === "Unknown Index name"
|| e.message === "Unknown index name"
|| e.message.includes("no such index")
)) {
// no-op: the thing we are dropping doesn't exist
} else {
throw e
Expand Down