samholmes opened a new pull request #244:
URL: https://github.com/apache/couchdb-nano/pull/244
<!-- Thank you for your contribution!
Please file this form by replacing the Markdown comments
with your text. If a section needs no action - remove it.
Also remember, that CouchDB uses the Review-Then-Commit (RTC) model
of code collaboration. Positive feedback is represented +1 from
committers
and negative is a -1. The -1 also means veto, and needs to be addressed
to proceed. Once there are no objections, the PR can be merged by a
CouchDB committer.
See: http://couchdb.apache.org/bylaws.html#decisions for more info. -->
## Overview
"Invalid parameters" error types were instantiated once at the module's
global scope, which causes the stack trace for the error to be static and not
helpful to the user. By moving the error instantiation to the scope where it's
thrown, the stack trace is useful to the user.
## Testing recommendations
Test by providing some invalid parameters any of the database object
methods. Expect a stack trace containing the method invocation line.
## GitHub issue number
Fixes #243
## Checklist
- [x] Code is written and works correctly;
- [x] Changes are covered by tests;
- [x] Documentation reflects the changes;
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]