Skip to content

Commit

Permalink
tweak wording on "overspecification" exception
Browse files Browse the repository at this point in the history
  • Loading branch information
boneskull committed Jul 11, 2016
1 parent 93e3c93 commit 32b1f97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/runnable.js
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ Runnable.prototype.run = function(fn) {
return done(new Error('done() invoked with non-Error: ' + err));
}
if (result && utils.isPromise(result)) {
return done(new Error('Asynchronous resolution method is overspecified. Specify a callback *or* return a Promise, not both.'));
return done(new Error('Resolution method is overspecified. Specify a callback *or* return a Promise; not both.'));
}

done();
Expand Down

0 comments on commit 32b1f97

Please sign in to comment.