sensu-plugins / sensu-plugin

A framework for writing Sensu plugins & handlers with Ruby.
http://sensuapp.org
MIT License
126 stars 117 forks source link

Make bail safe for non-string inputs and uninitialized events #78

Closed quodlibetor closed 9 years ago

quodlibetor commented 9 years ago

It was possible to bail on certain events before the 'client' and/or 'check' properties are initialized. In those cases you get a stacktrace (over multiple lines) instead of the initial error message.

With this change you always get the error message that the handler sent.