Permalink
Browse files

only show the error when there is an error

  • Loading branch information...
1 parent 5ffa7f1 commit 1d0484c142e8d9303456e579db70db8ed636b2aa @liangzan committed May 20, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 lib/cli.js
View
@@ -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);
+ }
});
});
}

0 comments on commit 1d0484c

Please sign in to comment.