Skip to content

Commit

Permalink
Print GUI executable error
Browse files Browse the repository at this point in the history
Print the GUI executable stderr in case of an error; the exit code alone
does not give the user enough context.
  • Loading branch information
Matoking committed Nov 8, 2023
1 parent 1db4740 commit 6bea9ae
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/protontricks/gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,9 @@ def _get_zenity_args():
# No installation was selected
choice = b""
else:
raise RuntimeError(f"{gui_provider} returned an error")
raise RuntimeError(
f"{gui_provider} returned an error. Stderr: {exc.stderr}"
)

if choice in (b"", b" \n"):
return None, None
Expand Down Expand Up @@ -367,7 +369,9 @@ def _get_zenity_args():
# No game was selected
choice = b""
else:
raise RuntimeError(f"{gui_provider} returned an error")
raise RuntimeError(
f"{gui_provider} returned an error. Stderr: {exc.stderr}"
)

if choice in (b"", b" \n"):
print("No game was selected. Quitting...")
Expand Down

0 comments on commit 6bea9ae

Please sign in to comment.