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.
1 parent 1247f91 commit 98d8566Copy full SHA for 98d8566
src/win/conpty.cc
@@ -179,7 +179,9 @@ HANDLE LoadConptyDll(const Napi::CallbackInfo& info,
179
180
std::wstring conptyDllPath = currentDirStr + L"\\build\\Release\\conpty\\conpty.dll";
181
if (!path_util::file_exists(conptyDllPath)) {
182
- throw errorWithCode(info, "Cannot find conpty.dll");
+ std::wstring errorMessage = L"Cannot find conpty.dll at " + conptyDllPath;
183
+ std::string errorMessageStr(errorMessage.begin(), errorMessage.end());
184
+ throw errorWithCode(info, errorMessageStr.c_str());
185
}
186
187
return LoadLibraryW(conptyDllPath.c_str());
0 commit comments