Skip to content

Commit

Permalink
only show the error when there is an error
Browse files Browse the repository at this point in the history
  • Loading branch information
liangzan committed May 20, 2012
1 parent 5ffa7f1 commit 1d0484c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,9 @@ cli._export = function(argv) {
winston.info('[forewoman] Procfile loaded');
parser.parseProcfile(data, function(procs) {
exporter.writeTemplates(procs, cmdOptions, function(err) {
winston.error('[forewoman] ' + err.message);
if (err) {
winston.error('[forewoman] ' + err.message);
}
});
});
}
Expand Down

0 comments on commit 1d0484c

Please sign in to comment.