Skip to content

Commit

Permalink
added error-maker dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabriel Llamas committed Nov 28, 2013
1 parent 4bef350 commit 3c12b41
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
12 changes: 3 additions & 9 deletions lib/error.js
Original file line number Original file line Diff line number Diff line change
@@ -1,11 +1,5 @@
"use strict"; "use strict";


module.exports = function (msg){ var make = require ("error-maker");
var error = Error.call (this, typeof msg === "object" ? msg.message : msg);
Error.captureStackTrace (error, this.constructor); module.exports = make ("PropertiesError");
Object.defineProperty (error, "name", {
enumerable: false,
value: "PropertiesError"
});
return error;
};
3 changes: 3 additions & 0 deletions package.json
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
"engines": { "engines": {
"node": ">=0.10" "node": ">=0.10"
}, },
"dependencies": {
"error-maker": "*"
},
"devDependencies": { "devDependencies": {
"ini": "1.1.x", "ini": "1.1.x",
"speedy": "*", "speedy": "*",
Expand Down

0 comments on commit 3c12b41

Please sign in to comment.