Skip to content

Commit

Permalink
fix(mongodb): enhance error message for missing mongodb dependency wi…
Browse files Browse the repository at this point in the history
…th installation instructions
  • Loading branch information
Hoshino-Yumetsuki committed Dec 31, 2024
1 parent dc3b599 commit ffa8be4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/vector-store-service/src/vectorstore/mongodb.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,8 @@ async function importMongoDB() {
return { MongoClient }
} catch (err) {
logger.error(err)
throw new Error('Please install mongodb as a dependency`')
throw new Error(
'Please install mongodb as a dependency with, e.g. `npm install -S mongodb`'
)
}
}

0 comments on commit ffa8be4

Please sign in to comment.