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

Extract the type of error #163

Closed
quakef4 opened this issue Jan 4, 2021 · 4 comments
Closed

Extract the type of error #163

quakef4 opened this issue Jan 4, 2021 · 4 comments

Comments

@quakef4
Copy link

quakef4 commented Jan 4, 2021

Hello,
I would need to memorize the type of error within a variable:
Example this:
Error: 75 = Deadlock found when trying to get lock; try restarting transaction.
in this case, I would need to memorize the number 75 inside a variable.

Is this possible without making changes to the library?

Thanks in advance!

@ChuckBell
Copy link
Owner

ChuckBell commented Jan 4, 2021 via email

@quakef4
Copy link
Author

quakef4 commented Jan 4, 2021

Yeah! it work fine!
Only correct little thing on arduino sketch:
-> instead of .
Serial.println(cur->get_error());
Would it be possible to add it as a modification?
Detecting the error allows you to understand if the query was sent and acquired successfully.
Correct me if I'm wrong

@quakef4 quakef4 closed this as completed Jan 4, 2021
@quakef4 quakef4 reopened this Jan 4, 2021
@ChuckBell
Copy link
Owner

ChuckBell commented Jan 4, 2021 via email

@quakef4
Copy link
Author

quakef4 commented Jan 4, 2021

Thanks!
To make good!

@quakef4 quakef4 closed this as completed Jan 4, 2021
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

2 participants