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 getter function for connection private property _fatalError #1355

Merged
merged 2 commits into from Nov 11, 2022

Conversation

alexsherman
Copy link
Contributor

@alexsherman alexsherman commented Jul 7, 2021

I ran into the problems described in knex/knex#2175 recently and I saw that the proposed solution in this issue (expose _fatalError as part of the public api of connection -> use getter in knex) was never implemented. Here's a stab at exposing that property as a getter, and I'll follow up with a PR for knex if this is accepted.

@alexsherman alexsherman closed this Jul 7, 2021
@alexsherman alexsherman reopened this Jul 7, 2021
@alexsherman alexsherman changed the title add getter function for fatalError Add getter function for connection private property _fatalError Jul 7, 2021
@sidorares
Copy link
Owner

hi @alexsherman can you add a simple unit test ( or modify existing one ) so your getter is not removed accidentally in the future

@sidorares sidorares merged commit ccf53c9 into sidorares:master Nov 11, 2022
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

Successfully merging this pull request may close these issues.

None yet

2 participants