mirror of
https://github.com/nodejs/node.git
synced 2026-11-09 15:11:11 -05:00
src: improve error message for invalid child stdio type in spawn_sync
PR-URL: https://github.com/nodejs/node/pull/57589 Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Ethan Arrowood <ethan@arrowood.dev> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com>
This commit is contained in:
1 parent
24b182e7b3
commit
ab0d3a38db
1 file changed
+4
-1
+4
-1
@@ -1055,7 +1055,10 @@ Maybe<int> SyncProcessRunner::ParseStdioOption(int child_fd,
|
||||
return Just(AddStdioInheritFD(child_fd, inherit_fd));
|
||||
}
|
||||
|
||||
UNREACHABLE("invalid child stdio type");
|
||||
Utf8Value stdio_type(env()->isolate(), js_type);
|
||||
fprintf(stderr, "invalid child stdio type: %s\n", stdio_type.out());
|
||||
|
||||
UNREACHABLE();
|
||||
}
|
||||
|
||||
int SyncProcessRunner::AddStdioIgnore(uint32_t child_fd) {
|
||||
|
||||
Reference in new issue
Block a user