appify icon indicating copy to clipboard operation
appify copied to clipboard

Remove magic number

Open jspc opened this issue 7 years ago • 2 comments

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.

jspc avatar May 08 '18 13:05 jspc

@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.

matryer avatar May 09 '18 18:05 matryer

Happy to change it, I wrote it with a cap and underscore because that's the convention we see in unix usually.

Though, of course, that's usually c or bash.

Commit incoming.

On Wed, 9 May 2018, 19:51 Mat Ryer, [email protected] wrote:

@jspc https://github.com/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.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/machinebox/appify/pull/3#issuecomment-387839306, or mute the thread https://github.com/notifications/unsubscribe-auth/AAxclb2HLMxsb3znxYpGlrNaxVtWkjtmks5twzqngaJpZM4T2mwM .

jspc avatar May 09 '18 19:05 jspc