nomnom icon indicating copy to clipboard operation
nomnom copied to clipboard

Use console.error when a non-zero exit code is used

Open mwoc opened this issue 11 years ago • 0 comments

When a CLI tool using nomnom is hooked up to write to stdout, it's problematic if console.log is used to report usage errors, as the error message would then be written to stdout instead of stderr.

This commit makes it use console.error instead for non-zero exit codes, which fixes our use case.

mwoc avatar Feb 13 '15 15:02 mwoc