mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2025-04-13 23:30:47 +02:00
Improve error message when OS.execute()
fails on Windows
This takes the error message from 4.x and backports it to 3.x.
This commit is contained in:
parent
a59cb3956b
commit
bdd55432ee
@ -2982,7 +2982,7 @@ Error OS_Windows::execute(const String &p_path, const List<String> &p_arguments,
|
|||||||
CloseHandle(pipe[0]); // Cleanup pipe handles.
|
CloseHandle(pipe[0]); // Cleanup pipe handles.
|
||||||
CloseHandle(pipe[1]);
|
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 (p_blocking) {
|
||||||
if (r_pipe) {
|
if (r_pipe) {
|
||||||
|
Loading…
Reference in New Issue
Block a user