Skip to content

Commit 98d8566

Browse files
committed
Improve can't find conpty.dll exception message
Part of microsoft/vscode#224488
1 parent 1247f91 commit 98d8566

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/win/conpty.cc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,9 @@ HANDLE LoadConptyDll(const Napi::CallbackInfo& info,
179179

180180
std::wstring conptyDllPath = currentDirStr + L"\\build\\Release\\conpty\\conpty.dll";
181181
if (!path_util::file_exists(conptyDllPath)) {
182-
throw errorWithCode(info, "Cannot find conpty.dll");
182+
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());
183185
}
184186

185187
return LoadLibraryW(conptyDllPath.c_str());

0 commit comments

Comments
 (0)