Skip to content

Commit

Permalink
Improve error message when OS.execute() fails on Windows
Browse files Browse the repository at this point in the history
This takes the error message from 4.x and backports it to 3.x.
  • Loading branch information
Calinou committed Sep 19, 2024
1 parent 8c444fb commit 7efd759
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion platform/windows/os_windows.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2978,7 +2978,7 @@ Error OS_Windows::execute(const String &p_path, const List<String> &p_arguments,
CloseHandle(pipe[0]); // Cleanup pipe handles.
CloseHandle(pipe[1]);
}
ERR_FAIL_COND_V(ret == 0, ERR_CANT_FORK);
ERR_FAIL_COND_V_MSG(ret == 0, ERR_CANT_FORK, "Could not create child process: " + String(modstr.ptr()));

if (p_blocking) {
if (r_pipe) {
Expand Down

0 comments on commit 7efd759

Please sign in to comment.