athena-oss / athena

An automation platform with a plugin architecture that allows you to easily create and share services.
https://athena-oss.github.io/athena/
Apache License 2.0
92 stars 25 forks source link

stacktrace should be send to STDERR as well #8

Closed ghost closed 8 years ago

ghost commented 8 years ago

on exit_with_msg the error message (including the file/line) are send to STDERR so that even with something like

my_var=$(athena.plugins.my_plugin.my_command)

the stacktrace should be visible with --athena-dbg enabled

ghost commented 8 years ago

also I realized that if you do something like that:

my_var=$(athena.plugins.my_plugin.my_command)

if [ -z "$my_var" ]; then
  ....

then my_var right now will have the stacktrace which might be unexpected