Skip to content

Commit

Permalink
umu_run: update error message for missing entry point
Browse files Browse the repository at this point in the history
- The current error message can cause confusion as it leaves the impression that a Steam Runtime wasn't installed in $HOME/.local/share/Steam, and that the user can fix the problem themselves by redownloading a Steam Runtime using the Steam client. For clarity, be explicit of the file that could not be found and the reason why.
  • Loading branch information
R1kaB3rN committed Jul 26, 2024
1 parent b788d6d commit 0a1ad97
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions umu/umu_run.py
Original file line number Diff line number Diff line change
Expand Up @@ -412,10 +412,13 @@ def build_command(
)
return command

# Exit if the entry point is missing
# The _v2-entry-point script and container framework tools are included in
# the same image, so this can happen if the image failed to download
if not entry_point.is_file():
err: str = (
f"Path to _v2-entry-point cannot be found in '{local}'\n"
"Please install a Steam Runtime platform"
f"_v2-entry-point (umu) cannot be found in '{local}'\n"
"Runtime Platform missing or download incomplete"
)
raise FileNotFoundError(err)

Expand Down

0 comments on commit 0a1ad97

Please sign in to comment.