diff --git a/platform/windows/os_windows.cpp b/platform/windows/os_windows.cpp index b78904f90..9619d89a8 100644 --- a/platform/windows/os_windows.cpp +++ b/platform/windows/os_windows.cpp @@ -2982,7 +2982,7 @@ Error OS_Windows::execute(const String &p_path, const List &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) {