We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1015386 + 02c632f commit ea81430Copy full SHA for ea81430
src/index.ts
@@ -27,7 +27,7 @@ export async function createDB(opts?: ServerOptions) {
27
28
if (!OPTION_TYPE_CHECKS[opt].check(suppliedOpts[opt])) {
29
//Supplied option failed the check
30
- throw OPTION_TYPE_CHECKS[opt].errorMessage
+ throw `${OPTION_TYPE_CHECKS[opt].errorMessage} | Received value: ${suppliedOpts[opt]} (type: ${typeof suppliedOpts[opt]})`
31
}
32
33
if (suppliedOpts[opt] !== undefined) {
0 commit comments