fix: correctly show error when karma fails to load

This commit is contained in:
Misko Hevery 2016-12-13 14:57:40 -08:00 committed by Matias Niemelä
parent 9211a22039
commit 31322e73b7
2 changed files with 2 additions and 4 deletions

View File

@ -71,4 +71,4 @@ Promise
return Promise.all(
allSpecFiles.map(function(moduleName) { return System.import(moduleName); }));
})
.then(__karma__.start, __karma__.error);
.then(__karma__.start, (v) => console.error(v));

View File

@ -82,9 +82,7 @@ System.import('@angular/core/testing')
});
}));
})
.then(
function() { __karma__.start(); },
function(error) { __karma__.error(error.stack || error); });
.then(function() { __karma__.start(); }, function(error) { console.error(error); });
function onlySpecFiles(path) {