Merge pull request #1802 from jonahx/iss-1798

Fix issue #1798
This commit is contained in:
Pierre-Yves Gérardy 2018-05-04 14:13:15 +02:00 committed by GitHub
commit be6c8c079d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -119,8 +119,8 @@ else window.o = m()
function done(err) {
if (err) {
if (err.message) record(err.message, err)
else record(err)
if (err instanceof Error) record(err.message, err)
else record(String(err))
subjects.pop()
next()
}