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

Add explicit opt-out for error swallowing #29

Open
MatteoGioioso opened this issue Dec 2, 2020 · 0 comments
Open

Add explicit opt-out for error swallowing #29

MatteoGioioso opened this issue Dec 2, 2020 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed

Comments

@MatteoGioioso
Copy link
Owner

MatteoGioioso commented Dec 2, 2020

Might be better to add an explicit opt-out to swallow internal errors:

} catch (e){
    if(this._config.errorSwallow){
       this._logger("Swallowed internal error", e.message)
       // Swallow the error, if this produce an error there is no need to error the function

      return {
        rows: []
     }
   } else {
    throw e
  }
}
@MatteoGioioso MatteoGioioso added enhancement New feature or request help wanted Extra attention is needed good first issue Good for newcomers labels Feb 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant