Skip to content

Commit

Permalink
feat: improve gate error format
Browse files Browse the repository at this point in the history
  • Loading branch information
medikoo committed May 24, 2017
1 parent 17af2e7 commit ad4d71b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ext/function/gate.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ var toPosInt = require('es5-ext/number/to-pos-integer')
require('../promise/finally');

gateReject = function () {
var e = new Error("Too many calls");
var e = new Error("Too many calls at the gate");
e.code = 'DEFERRED_REJECTED_AT_GATE';
e.type = 'deferred-gate-rejected';
return reject(e);
};
Expand Down

0 comments on commit ad4d71b

Please sign in to comment.