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

Report error and use exit(1) for errors and exit(0) for success #40

Closed
skliper opened this issue Mar 3, 2021 · 0 comments · Fixed by #42
Closed

Report error and use exit(1) for errors and exit(0) for success #40

skliper opened this issue Mar 3, 2021 · 0 comments · Fixed by #42
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@skliper
Copy link
Contributor

skliper commented Mar 3, 2021

Is your feature request related to a problem? Please describe.
Reporting same exit code for error and success, doesn't include error information (strerror)

General pattern supports scripting/failure reporting.

Describe the solution you'd like
exit(0) for success, exit(1) for errors, use strerror when reporting for all error cases

Describe alternatives you've considered
None

Additional context
#39 discussion

Requester Info
Jacob Hageman - NASA/GSFC

@skliper skliper added the enhancement New feature or request label Mar 3, 2021
@skliper skliper added this to the 1.3.0 milestone Mar 3, 2021
zanzaben added a commit to zanzaben/tblCRCTool that referenced this issue Mar 3, 2021
zanzaben added a commit to zanzaben/tblCRCTool that referenced this issue Mar 3, 2021
zanzaben added a commit to zanzaben/tblCRCTool that referenced this issue Mar 3, 2021
zanzaben added a commit to zanzaben/tblCRCTool that referenced this issue Mar 4, 2021
36: Handle read failure
38: handle lseek error
40: use exit (1)
41: fix EOF check
zanzaben added a commit to zanzaben/tblCRCTool that referenced this issue Mar 5, 2021
36: Handle read failure
38: handle lseek error
40: use exit (1)
41: fix EOF check
zanzaben added a commit to zanzaben/tblCRCTool that referenced this issue Mar 5, 2021
36: Handle read failure
38: handle lseek error
40: use exit (1)
41: fix EOF check
zanzaben added a commit to zanzaben/tblCRCTool that referenced this issue Mar 5, 2021
36: Handle read failure
38: handle lseek error
40: use exit (1)
41: fix EOF check
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
2 participants