Skip to content

Commit

Permalink
Printing out errors in the logger
Browse files Browse the repository at this point in the history
  • Loading branch information
jdalrymple committed Feb 20, 2017
1 parent 5db34c5 commit 4c235f5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/HgRepo.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
const Fs = require('fs-extra-promise');
const Command = require('../utils/Command');
const Path = require('path');
const Command = require('../utils/Command');
const Log = require('../utils/Logger');

function ensureGitify(pythonPath) {
return Command.run(`${pythonPath} -c 'import gitifyhg'`)
Expand Down Expand Up @@ -182,6 +183,7 @@ class HgRepo {
.run(`${this.pythonPath} -V`)
.then((output) => {
if (!output.stderr.includes('2.7')) {
Log.debug(output.stderr);
throw new Error('Conversion library currently only supports Python 2.7.x ');
}

Expand Down

0 comments on commit 4c235f5

Please sign in to comment.