Skip to content

Commit

Permalink
Add isDependencyError method to DependencyError
Browse files Browse the repository at this point in the history
  • Loading branch information
quaertym committed Oct 30, 2014
1 parent a69312c commit 5b694d1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/dependency-error.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,7 @@ function DependencyError(message) {

DependencyError.prototype = Object.create(Error.prototype);
DependencyError.prototype.constructor = DependencyError;

DependencyError.isDependencyError = function(object) {
return object instanceof DependencyError;
};

0 comments on commit 5b694d1

Please sign in to comment.