mirror of
https://github.com/hydralauncher/hydra.git
synced 2026-01-22 02:13:59 +00:00
fix: correct error handling in Python RPC process exit code
This commit is contained in:
@@ -156,10 +156,10 @@ export class PythonRPC {
|
||||
if (!resolved) {
|
||||
resolved = true;
|
||||
cleanup();
|
||||
if (code !== 0) {
|
||||
reject(new Error(`Python RPC process exited with code ${code}`));
|
||||
} else {
|
||||
if (code === 0) {
|
||||
resolve(null);
|
||||
} else {
|
||||
reject(new Error(`Python RPC process exited with code ${code}`));
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user