Skip to content

Commit

Permalink
Exceptions are structured a little better.
Browse files Browse the repository at this point in the history
  • Loading branch information
maryrosecook committed Feb 26, 2013
1 parent 3fa2dd8 commit 6012d93
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/interpreter.js
Expand Up @@ -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()
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit 6012d93

Please sign in to comment.