aboutsummaryrefslogtreecommitdiff
path: root/lib/tree.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/tree.js')
-rw-r--r--lib/tree.js10
1 files changed, 2 insertions, 8 deletions
diff --git a/lib/tree.js b/lib/tree.js
index 839b698c..e2fd44b6 100644
--- a/lib/tree.js
+++ b/lib/tree.js
@@ -18,10 +18,7 @@ var tree = {
if (!obj) {
throw {
name: "ObjectError",
- message: "there needs to be an object passed in",
- toString: function () {
- return this.name + ": " + this.message
- }
+ message: "there needs to be an object passed in"
};
}
@@ -29,10 +26,7 @@ var tree = {
if (width <= 0) {
throw {
name: "TreeParamError",
- message: "width must be greater than zero",
- toString: function () {
- return this.name + ": " + this.message
- }
+ message: "width must be greater than zero"
};
}