Suppress "undefined" messages in console where string errors are passed

Without this, "undefined" shows up in the console every time an error is passed via .error(String). This patch will attempt to display the err "object" as a fallback when the default behaviors fail.
Merge pull request #230 from michikono/patch-1

Suppress "undefined" messages in console where string errors are passed