Skip to content

Remove magic number#3

Open
jspc wants to merge 1 commit into
machinebox:masterfrom
jspc:master
Open

Remove magic number#3
jspc wants to merge 1 commit into
machinebox:masterfrom
jspc:master

Conversation

@jspc

@jspc jspc commented May 8, 2018

Copy link
Copy Markdown

Currently this tool throws exit(2) on error. This doesn't mean anything and is a magic number.

Instead this PR defines it as an error.

The choice of 2 is out of the scope of this PR.

@matryer

matryer commented May 9, 2018

Copy link
Copy Markdown
Contributor

@jspc fair enough. I like to avoid using CAPS as constant names, and maybe it should exit with 1 instead? There is nothing special, just need a non-zero exit code.

@jspc

jspc commented May 9, 2018 via email

Copy link
Copy Markdown
Author

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