Output error events from provider in test runner
Now, 'error' events from the test runner are output to stderr. Additionally, when debug is enabled, debug output is logged to stderr instead of stdout (as was the case previously).
This commit is contained in:
parent
7187bc121f
commit
93af721a27
|
@ -297,10 +297,16 @@ if (!program.outputHtml && !program.generateHtml) {
|
|||
|
||||
if (program.debug) {
|
||||
provider.on('console', function(line) {
|
||||
console.log(line);
|
||||
// log to stderr
|
||||
console.error(line);
|
||||
});
|
||||
}
|
||||
|
||||
provider.on('error', function(line) {
|
||||
// log to stderr
|
||||
console.error('ERROR: ' + line);
|
||||
});
|
||||
|
||||
/*gprom.finally(function(ph) {
|
||||
ph.exit();
|
||||
// exit with a status code that actually gives information
|
||||
|
|
Loading…
Reference in New Issue