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 CHANGED
@@ -4,7 +4,7 @@
4
4
  "author": {
5
5
  "name": "Microsoft Corporation"
6
6
  },
7
- "version": "1.1.0-beta16",
7
+ "version": "1.1.0-beta17",
8
8
  "license": "MIT",
9
9
  "main": "./lib/index.js",
10
10
  "types": "./typings/node-pty.d.ts",
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
- 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());
183
185
  }
184
186
 
185
187
  return LoadLibraryW(conptyDllPath.c_str());