node-red/node-red — pull request #356 by nevercast (2014-08-27 22:07:05+00:00)
Title: Fix hard crash during exception catch

When an uncaughtException is fired, sometimes there may be no error or no error.stack property, this causes a harder crash.
This patch fixes this in hope that if there is no stack, maybe err.toString() will be at least a little useful.

falls back to "" if there is no error at all.