Skip to content

armgit / mocha

Public Imported from GitHub
0

☕️ Classic, reliable, trusted test framework for Node.js and the browser

changed 'Catched' to 'Caught' in uncaught exception error handler messages

omardelarosab0eb8d044c97
diff --git a/lib/runner.js b/lib/runner.js
index 546f7a86..e02bd352 100644
--- a/lib/runner.js
+++ b/lib/runner.js
@@ -538,7 +538,7 @@ Runner.prototype.uncaught = function(err){
}.call(err) ? err : ( err.message || err ));
} else {
debug('uncaught undefined exception');
- err = new Error('Catched undefined error, did you throw without specifying what?');
+ err = new Error('Caught undefined error, did you throw without specifying what?');
}
err.uncaught = true;
diff --git a/mocha.js b/mocha.js
index 28b2fc62..27f66d35 100644
--- a/mocha.js
+++ b/mocha.js
@@ -4991,7 +4991,7 @@ Runner.prototype.uncaught = function(err){
}.call(err) ? err : ( err.message || err ));
} else {
debug('uncaught undefined exception');
- err = new Error('Catched undefined error, did you throw without specifying what?');
+ err = new Error('Caught undefined error, did you throw without specifying what?');
}
err.uncaught = true;