Skip to content

Commit

Permalink
Merge pull request #245 from davedoesdev/fix-errors-and-tests
Browse files Browse the repository at this point in the history
Copy headers to error object explicitly.
  • Loading branch information
sreuter committed Apr 24, 2014
2 parents 069271f + aaf1aee commit a94c676
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/cradle/errors.js
Expand Up @@ -16,6 +16,7 @@ function CouchError (err) {
this[k] = err[k];
}
}
this.headers = err.headers;
}
// CouchError instanceof Error
util.inherits(CouchError, Error);
Expand Down

0 comments on commit a94c676

Please sign in to comment.