Commit 93af721a authored by Solly Ross's avatar Solly Ross

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).
parent 7187bc12
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment