node-pty 1.1.0-beta16 → 1.1.0-beta17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/win/conpty.cc +3 -1
package/package.json
CHANGED
package/src/win/conpty.cc
CHANGED
|
@@ -179,7 +179,9 @@ HANDLE LoadConptyDll(const Napi::CallbackInfo& info,
|
|
|
179
179
|
|
|
180
180
|
std::wstring conptyDllPath = currentDirStr + L"\\build\\Release\\conpty\\conpty.dll";
|
|
181
181
|
if (!path_util::file_exists(conptyDllPath)) {
|
|
182
|
-
|
|
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());
|
|
183
185
|
}
|
|
184
186
|
|
|
185
187
|
return LoadLibraryW(conptyDllPath.c_str());
|