Skip to content

Commit

Permalink
Don't support logging existing 'CuvvaError' objects
Browse files Browse the repository at this point in the history
  • Loading branch information
billinghamj committed Aug 26, 2015
1 parent 18809b9 commit d120893
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,11 +104,6 @@ module.exports.coerceError = function (error) {

function logger(level) {
return function (code, reasons, meta) {
if (code instanceof CuvvaError) {
handleError(level, code);
return code;
}

var err = new CuvvaError(code, reasons, meta);

handleError(level, err);
Expand Down

0 comments on commit d120893

Please sign in to comment.