mirror of
https://github.com/lutris/lutris
synced 2024-09-15 22:09:55 +00:00
Print out failed process on FileNotFound errors
This commit is contained in:
parent
56698fca53
commit
cb3194aaf5
|
@ -1,5 +1,4 @@
|
|||
"""Exception handling module"""
|
||||
# Standard Library
|
||||
from functools import wraps
|
||||
from gettext import gettext as _
|
||||
|
||||
|
|
|
@ -128,7 +128,7 @@ def main():
|
|||
try:
|
||||
process_pid = subprocess.Popen(args).pid
|
||||
except FileNotFoundError:
|
||||
log("Failed to execute process. Check that the file exists")
|
||||
log("Failed to execute process '%s'. Check that the file exists" % " ".join(args))
|
||||
return
|
||||
log("Started initial process %d from %s" % (process_pid, " ".join(args)))
|
||||
|
||||
|
@ -147,7 +147,7 @@ def main():
|
|||
log(message)
|
||||
while True:
|
||||
try:
|
||||
child_pid, child_returncode, resource_usage = os.wait3(os.WNOHANG)
|
||||
child_pid, child_returncode, _resource_usage = os.wait3(os.WNOHANG)
|
||||
except ChildProcessError:
|
||||
raise NoMoreChildren from None # No processes remain.
|
||||
if child_pid == process_pid:
|
||||
|
|
Loading…
Reference in a new issue