Permalink
Browse files

Exceptions are structured a little better.

  • Loading branch information...
1 parent 3fa2dd8 commit 6012d938cb1189a3599edfac32729fb3e4996c3f @maryrosecook committed Feb 26, 2013
Showing with 3 additions and 3 deletions.
  1. +2 −2 src/interpreter.js
  2. +1 −1 src/isla.min.js
View
@@ -117,7 +117,7 @@
})
.default(function(ast, env) {
- throw "You've forgotten a tag type.";
+ throw { message:"You've forgotten a tag type." };
});
var evaluateValue = multimethod()
@@ -157,7 +157,7 @@
});
var nonExistentError = function(identifier) {
- throw "I have not heard of " + identifier.join(" ") + ".";
+ throw { message:"I have not heard of " + identifier.join(" ") + "." };
};
var checkIdentifierParts = function(objNode, env) {
Oops, something went wrong.

0 comments on commit 6012d93

Please sign in to comment.