Skip to content

Add explicit opt-out for error swallowing  #29

@MatteoGioioso

Description

@MatteoGioioso

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
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions