We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 58475c3 + f522174 commit d4ed1a2Copy full SHA for d4ed1a2
1 file changed
lib/models/logger.js
@@ -19,7 +19,9 @@ var Logger = CoreObject.extend({
19
},
20
21
flush: function() {
22
- var maxWidth = process.stdout.columns - 4;
+ // guard against environments such as travis that report zero columns
23
+ var columns = process.stdout.columns || 80;
24
+ var maxWidth = columns - 4;
25
var halfWidth = Math.floor(maxWidth / 2);
26
var table = new Table({
27
head: ['Source', 'Destination'],
0 commit comments