Merge branch 'feat/improveErrorMessages' of https://github.com/dhoko/jasmine into dhoko-feat/improveErrorMessages
- Merges #1026 from @dhoko - Fixes #1025
This commit is contained in:
11
src/core/formatErrorMsg.js
Normal file
11
src/core/formatErrorMsg.js
Normal file
@@ -0,0 +1,11 @@
|
||||
getJasmineRequireObj().formatErrorMsg = function() {
|
||||
function generateErrorMsg(domain, usage) {
|
||||
var usageDefinition = usage ? '\nUsage: ' + usage : '';
|
||||
|
||||
return function errorMsg(msg) {
|
||||
return domain + ' : ' + msg + usageDefinition;
|
||||
};
|
||||
}
|
||||
|
||||
return generateErrorMsg;
|
||||
};
|
||||
Reference in New Issue
Block a user