From f2eeb7664e70b7c162a3b4852d4c1310bcaba248 Mon Sep 17 00:00:00 2001 From: Manuel Araoz Date: Tue, 13 Jan 2015 20:11:40 -0300 Subject: [PATCH] fix extend --- lib/errors/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/errors/index.js b/lib/errors/index.js index 921b2ff..425e995 100644 --- a/lib/errors/index.js +++ b/lib/errors/index.js @@ -56,5 +56,6 @@ traverseRoot(bitcore.Error, data); module.exports = bitcore.Error; module.exports.extend = function(spec) { - traverseRoot(bitcore.Error, spec); + traverseNode(bitcore.Error, spec); + return bitcore.Error; };