oleg-shilo / cs-script

C# scripting platform
http://www.cs-script.net
MIT License
1.57k stars 234 forks source link

Use StdErr instead of StdOut for error info printing #283

Closed eugene-vv closed 2 years ago

eugene-vv commented 2 years ago

Now all exceptions information is printed to StdOut in the way like Console.WriteLine() and etc. It will be better to use StdErr for this information. May be optionally. It helps much with error information extraction from output. Also it will be helpful to standardize the error output format. Now it is sometime 2, sometime 3 lines

oleg-shilo commented 2 years ago

Agree. Fixed. Will be available in the very next release.

In a mean time use process exit code to detect the execution failure.