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

Getting error code number #68

Open
Elsie19 opened this issue Sep 22, 2024 · 0 comments
Open

Getting error code number #68

Elsie19 opened this issue Sep 22, 2024 · 0 comments

Comments

@Elsie19
Copy link

Elsie19 commented Sep 22, 2024

I cannot seem to find any function/macro in this library that I can use to get an exit code from a command. The closest I found is run_cmd!(), but that errors to something like:

Running ["bash" "-c" "time ./build/debug/foo"] exited with error; status code: 1 at src/main.rs:83

with no way to extract that 1 unless I parsed the string itself, which is not ideal.

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

No branches or pull requests

1 participant