Skip to content

Commit

Permalink
Reword the catch predicate TypeError message for clarity (#1350)
Browse files Browse the repository at this point in the history
  • Loading branch information
Retsam authored and petkaantonov committed Mar 3, 2017
1 parent b6a1b33 commit 901a563
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/promise.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,8 @@ Promise.prototype.caught = Promise.prototype["catch"] = function (fn) {
if (util.isObject(item)) {
catchInstances[j++] = item;
} else {
return apiRejection(OBJECT_ERROR +
"A catch statement predicate " + util.classString(item));
return apiRejection("Catch statement predicate: " +
OBJECT_ERROR + util.classString(item));
}
}
catchInstances.length = j;
Expand Down

0 comments on commit 901a563

Please sign in to comment.