[Pkg-javascript-commits] [node-tap-mocha-reporter] 11/137: Don't read diag if undefined

Bastien Roucariès rouca at moszumanska.debian.org
Thu Sep 7 09:49:22 UTC 2017


This is an automated email from the git hooks/post-receive script.

rouca pushed a commit to branch master
in repository node-tap-mocha-reporter.

commit 6ae94b40a8de9021d623560329f8e2565dda251e
Author: isaacs <i at izs.me>
Date:   Sat Apr 25 13:39:36 2015 -0700

    Don't read diag if undefined
---
 lib/runner.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/runner.js b/lib/runner.js
index 251feae..8ee1054 100644
--- a/lib/runner.js
+++ b/lib/runner.js
@@ -229,7 +229,7 @@ function getError (result) {
       toString: function () {
         return 'Error: ' + this.message
       },
-      stack: result.diag.stack
+      stack: result.diag && result.diag.stack
     }
   }
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-tap-mocha-reporter.git



More information about the Pkg-javascript-commits mailing list