Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix:[#434] exit with 1 if error is detected #435

Merged
merged 1 commit into from
Dec 7, 2024
Merged

Conversation

jardon
Copy link
Member

@jardon jardon commented Dec 7, 2024

Exit with generic (1) error if error exists

apx snapcraft run "/usr/bin/echo pass"
Error: crun: executable file `/usr/bin/echo pass` not found in $PATH: No such file or directory: OCI runtime attempted to invoke a command that was not found
Error: An error occurred while executing the command: exit status 127
Usage:
  apx snapcraft run [flags]

Flags:
  -h, --help   help for run

  ERROR   An error occurred while executing the command: exit status 127
echo $?
1

relates #434

@jardon jardon requested a review from mirkobrombin December 7, 2024 17:20
@jardon jardon merged commit dfb4e63 into main Dec 7, 2024
4 checks passed
@jardon jardon deleted the fix/exit-w-generic-error branch December 7, 2024 17:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants