|
|
@ -25,6 +25,7 @@ var traverseNode = function(parent, errorDefinition) { |
|
|
|
if (errorDefinition.errors) { |
|
|
|
childDefinitions(NodeError, errorDefinition.errors); |
|
|
|
} |
|
|
|
return NodeError; |
|
|
|
}; |
|
|
|
|
|
|
|
/* jshint latedef: false */ |
|
|
@ -56,6 +57,5 @@ traverseRoot(bitcore.Error, data); |
|
|
|
module.exports = bitcore.Error; |
|
|
|
|
|
|
|
module.exports.extend = function(spec) { |
|
|
|
traverseNode(bitcore.Error, spec); |
|
|
|
return bitcore.Error; |
|
|
|
return traverseNode(bitcore.Error, spec); |
|
|
|
}; |
|
|
|