netsuite-suitecloud-sdk icon indicating copy to clipboard operation
netsuite-suitecloud-sdk copied to clipboard

exit codes and printing errors to STDERR

Open starlingjon opened this issue 2 years ago • 1 comments

Similar to this comment, I've run into some headaches caused by the fact that errors are printed to STDOUT not STDERR. Nothing I can't work around (yet) but it's something I have to take into account and handle when working on tooling that uses suitecloud.

I have also noticed that not all commands exit with non-zero exit codes on error: suitecloud project:validate does but suitecloud project:deploy does not, at least not if the error happened during validation. This would make developing tooling that uses deploy considerably more difficult.

If there isn't good reason not to, it would be helpful to have errors printed to STDERR and for all commands to only exit with 0 if they were successful.

starlingjon avatar Jan 18 '23 16:01 starlingjon

Thanks for bringing this up. We will evaluate this and get back to you. @starlingjon

alisyed-19 avatar Jan 20 '23 14:01 alisyed-19