-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
ofxNetwork : wrongly reported errors #6457
Comments
Should that read "all the errors will be ignored even if they should be reported."? |
It's more "all the errors will be reported even if they should be ignored". I'll edit the post to make it clearer. |
@oxillo so would ofxNetworkGetLastError() return no error for errors that can be safely ignored? |
This is one of the last issues left before we can release 0.11.1. |
I have no opinion on pushing or fixing, as I just ran into it once and it hasn't been impacting my current work. Maybe it could be mentioned in the documentation to help people be more likely to figure out what's (not) happening if/when they do run into it? Because once you know, and find the lines of code mentioned, you could hack it to do what you want? Just a thought, trying to be helpful. Again, I don't have enough knowledge/experience with it to have a strong opinion. |
The idea behind my proposal is to separate getting the error and logging it. |
closed by #6675 |
ofxNetwork may report errors that should be ignored.
This happens when there are construct like :
As ofxNetworkCheckError() gets the error and logs it, all the errors will be reported even if they should be ignored.
This explains the error seen here:
https://ci.appveyor.com/project/arturoc/openframeworks/builds/28847653/job/0duai87vuou8ctv7#L1358
Originally posted by @ofTheo in #6412 (comment)
Proposal
int ofxNetworkGetLastError()
to return the last errorline
line in filefile
ofxNetworkLogError(ofxNetworkGetLastError(), __FILE__, __LINE__)
The text was updated successfully, but these errors were encountered: