Skip to content

Commit e9116e1

Browse files
committed
Fix reporting of errors on Windows
When winpty exceptions occurred they were silently failing due to marshal not being initialized. Part of chjj#102 Part of chjj#103
1 parent abb0a37 commit e9116e1

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/win/pty.cc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -256,15 +256,14 @@ static NAN_METHOD(PtyStartProcess) {
256256
std::string conoutPipeNameStr(conoutPipeNameWStr.begin(), conoutPipeNameWStr.end());
257257
marshal->Set(Nan::New<v8::String>("conout").ToLocalChecked(), Nan::New<v8::String>(conoutPipeNameStr).ToLocalChecked());
258258
}
259+
info.GetReturnValue().Set(marshal);
259260

260261
goto cleanup;
261262

262263
cleanup:
263264
delete filename;
264265
delete cmdline;
265266
delete cwd;
266-
267-
info.GetReturnValue().Set(marshal);
268267
}
269268

270269
/*

0 commit comments

Comments
 (0)