util: format as Error if instanceof Error
authorRod Vagg <rod@vagg.org>
Tue, 15 Oct 2013 01:26:18 +0000 (12:26 +1100)
committerFedor Indutny <fedor@indutny.com>
Fri, 25 Apr 2014 20:52:49 +0000 (00:52 +0400)
commit250782d139ccec276ec24e401a78423a66dcf97a
tree4429242c1e35478a9eaee74c7eb46cf334edfc46
parentf9ced08de30c37838756e8227bd091f80ad9cafa
util: format as Error if instanceof Error

Conflicts:
lib/util.js
test/simple/test-util-format.js

This is a backport to fix #7253

Signed-off-by: Fedor Indutny <fedor@indutny.com>
lib/util.js
test/simple/test-util-format.js
test/simple/test-util.js