Skip to content

Commit

Permalink
Merge pull request godotengine#97171 from Calinou/os-execute-windows-…
Browse files Browse the repository at this point in the history
…improve-cant-fork-error-message

[3.x] Improve error message when `OS.execute()` fails on Windows
  • Loading branch information
lawnjelly authored Sep 20, 2024
2 parents 8c444fb + 7efd759 commit 553030b
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 553030b

Please sign in to comment.