decker-edu / decker

A markdown based tool for slide deck creation.
GNU General Public License v3.0
60 stars 15 forks source link

Report errors on stderr? #30

Closed salbeira closed 1 year ago

salbeira commented 1 year ago

I just mentioned that decker reports errors simply as colored text on stdout instead of writing errors to stderr (which usually is then colored by the terminal). Is there a reason for it and does anything speak against actually using the stderr for error reporting?

monofon commented 1 year ago

The reason is that the shake library reports exceptions that way.

Would there be any advantage to actually using stderr for error reporting?

salbeira commented 1 year ago

For our vs code plugins it would be neat to actually know what messages sent are errors and what are just status messages because if a server is running and you include e.g. a non existing image, compilation fails but you are not informed about it because the server just keeps running but no changes happen. If the error would be reported over stderr I would be able to actually report the fact to the user.

monofon commented 1 year ago

Try decker --help. 😁

salbeira commented 1 year ago

Option -e seems to work. Thanks.