diff --git a/src/cli/cli.js b/src/cli/cli.js index 5e9e356..0f5876c 100644 --- a/src/cli/cli.js +++ b/src/cli/cli.js @@ -282,7 +282,7 @@ function makehtmlCommand (options, cmd) { converter.addExtension(ext, options.extensions[i]); messenger.printMsg(options.extensions[i] + ' loaded...'); } catch (e) { - messenger.printError('Could not load extension ' + options.extensions[i] + '. Reason:'); + messenger.printError('ERROR: Could not load extension ' + options.extensions[i] + '. Reason:'); messenger.errorExit(e); } } diff --git a/test/unit/cli.js b/test/unit/cli.js index 6c89db1..3d70899 100644 --- a/test/unit/cli.js +++ b/test/unit/cli.js @@ -180,10 +180,11 @@ describe('showdown cli', function () { }); it('should display errors', function () { - var proc = spawnCLI('makehtml', ['-q', '-i']); - //proc.status.should.equal(1); + var proc = spawnCLI('makehtml', ['-q', '-i', '-e', 'foo'], {input: 'f'}); + proc.status.should.equal(1); expect(proc.output).to.be.null; // jshint ignore:line proc.stdout.should.equal(''); + console.log(proc.stderr); proc.stderr.should.match(/^ERROR:/); });