Fix issue #1798
This commit is contained in:
parent
f58187d4e3
commit
277ac9e171
1 changed files with 1 additions and 1 deletions
|
|
@ -193,7 +193,7 @@ module.exports = new function init() {
|
|||
function record(message, error) {
|
||||
var result = {pass: message === null}
|
||||
if (result.pass === false) {
|
||||
if (error == null) {
|
||||
if (error == null || typeof error === "string") {
|
||||
error = new Error
|
||||
if (error.stack === undefined) new function() {try {throw error} catch (e) {error = e}}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue