diff --git a/lib/repository/repository.ts b/lib/repository/repository.ts index 86a124c..6f5ea07 100644 --- a/lib/repository/repository.ts +++ b/lib/repository/repository.ts @@ -116,7 +116,11 @@ export class Repository> { /* 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