question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Exit with non-zero status code upon error

See original GitHub issue

I’d like to chain the statik command with && and then another command to upload the generated output.

However as it is statik exits with a 0 status whether successful or not so I have to perform other checks before I can upload.

I could probably submit a PR for this if it’s something you’d want to incorporate.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
tylerdavecommented, Mar 27, 2017

Works perfectly. Thanks!

1reaction
thanethomsoncommented, Mar 26, 2017

Sorry for the delay in getting back to you! I’ve now released v0.16.1 to return proper non-zero exit codes when an exception is thrown during processing.

Please check it out and let me know if it works for your purposes?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why the Unix command exit with non-zero value in Shell and ...
If the command's exit status is zero, it signals the shell that the utility finished successfully. The exit status is more of "an...
Read more >
How to exit out of for loop with non zero status code? [duplicate]
I have below shell script and I am trying to exit out of for loop with non zero status code but somehow my...
Read more >
required: exit non-zero status code when found error/warn ...
I hope there is no any warning/error in my project I set up a series of CI and hook checks, but eslint has...
Read more >
Standard Exit Status Codes in Linux - Baeldung
A quick and practical guide to Linux exit codes. ... this code is equal to zero. Any non-zero exit code indicates that some...
Read more >
Returning information from a shell script via an Exit Code
Success is traditionally represented with exit 0 ; failure is normally indicated with a non-zero exit-code. This value can indicate different reasons for ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found