Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect detection of error origin #12

Open
Smert opened this issue Jul 28, 2017 · 0 comments
Open

Incorrect detection of error origin #12

Smert opened this issue Jul 28, 2017 · 0 comments

Comments

@Smert
Copy link

Smert commented Jul 28, 2017

Catch in

                try {
                    this.resolve(paramDefinition, method, undefined, strict);
                } catch (e) {
                    throw new Error(`Unknown definition: ${paramDefinition.toString()}`)
                }

Redefines the error from this.resolve

                throw new Error(`Unknown definition: ${definition.toString()}`);

As a result, a non-informative error is thrown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant