Permalink
Browse files

New utility module.

  • Loading branch information...
dandean committed Jul 8, 2011
1 parent 566ab12 commit a9ceb7aaf90e368addc8142b54e374a0de8cfbbd
Showing with 7 additions and 0 deletions.
  1. +7 −0 lib/util.js
View
@@ -0,0 +1,7 @@
+module.exports = {
+ Error: function(type, message) {
+ var error = new Error(message);
+ error.name = type;
+ return error;
+ }
+};

0 comments on commit a9ceb7a

Please sign in to comment.