component/console.js — pull request #3 by dominicbarnes (2014-05-22 18:06:27+00:00)
Title: Fixing cases where "undefined" was printed instead of an error message

Turns out there are cases where an err will not have a stack, even though it should. This catches that condition, and shows the message when stack is unavailable.