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:
Solly Ross 2014-06-03 16:58:37 -04:00
parent 7187bc121f
commit 93af721a27
1 changed files with 7 additions and 1 deletions

View File

@ -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