diff --git a/bin/bunyan b/bin/bunyan index e3c4908..fb6af90 100755 --- a/bin/bunyan +++ b/bin/bunyan @@ -11,7 +11,7 @@ * vim: expandtab:ts=4:sw=4 */ -var VERSION = '1.2.5'; +var VERSION = '1.3.0'; var p = console.log; var util = require('util'); @@ -1466,8 +1466,10 @@ process.on('uncaughtException', function (err) { e('* The Bunyan CLI crashed!'); e('*'); if (err.name === 'ReferenceError' && gUsingConditionOpts) { + /* BEGIN JSSTYLED */ e('* This crash was due to a "ReferenceError", which is often the result of given'); e('* `-c CONDITION` code that doesn\'t guard against undefined values. If that is'); + /* END JSSTYLED */ e('* not the problem:'); e('*'); } diff --git a/lib/bunyan.js b/lib/bunyan.js index e9d6738..9aebd4d 100644 --- a/lib/bunyan.js +++ b/lib/bunyan.js @@ -1050,7 +1050,7 @@ function RotatingFileStream(options) { this.count = (options.count == null ? 10 : options.count); assert.equal(typeof (this.count), 'number', format('rotating-file stream "count" is not a number: %j (%s) in %j', - this.count, typeof(this.count), this)); + this.count, typeof (this.count), this)); assert.ok(this.count >= 0, format('rotating-file stream "count" is not >= 0: %j in %j', this.count, this));