Skip to content

Commit 94ee82d

Browse files
committed
fix(MongoBinary): add information about "RUNTIME_DOWNLOAD" to no binary found error
1 parent 10cfd37 commit 94ee82d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/mongodb-memory-server-core/src/util/MongoBinary.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,8 +134,9 @@ export class MongoBinary {
134134
}
135135

136136
if (!binaryPath) {
137+
const runtimeDownload = envToBool(resolveConfig(ResolveConfigVariables.RUNTIME_DOWNLOAD));
137138
throw new Error(
138-
`MongoBinary.getPath: could not find an valid binary path! (Got: "${binaryPath}")`
139+
`MongoBinary.getPath: could not find an valid binary path! (Got: "${binaryPath}", RUNTIME_DOWNLOAD: "${runtimeDownload}")`
139140
);
140141
}
141142

0 commit comments

Comments
 (0)