Better user feedback when Linux system package target is not available in the Docker registry #1368
Labels
bug
A crash or error in behavior.
good first issue
Is this your first time contributing? This could be a good place to start!
linux
The issue relates Linux support.
Describe the bug
If a user targets a platform for which a suitable Docker image is not available, the user feedback doesn't really communicate that.
While the above example is trying to pull an image for an architecture it doesn't provide, a simple misspelling creates the same situation.
Steps to reproduce
Run
briefcase package --target ubnutu
Expected behavior
I know the output explicitly says "unable to find image" but the "Unable to determine if Docker is mapping users" is in red and at least causes initial, if not entire, misdirection to the real problem.
Docker has different exit codes for when
docker run
fails versus when something inside a container goes wrong.Therefore, I think we can catch and interpret these exit codes differently:
In this way, we could detect
125
for anydocker run
call and output a more generic message about the target image.Screenshots
No response
Environment
0.3.16.dev19+g30ee4a80
Logs
briefcase.2023_07_21-11_31_11.package.log
Additional context
No response
The text was updated successfully, but these errors were encountered: