You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I wish ignore errors especially record not found that is unnecessary to classify as errors in my server.
The server queries by request from the client that can manipulate req body, then we always allow record_not_found error.
Most of record_not_found error makes me indifferent to see error rate dashboard.
To Extendability,I suggest adding an option that can ignore some type of errors like below
This seems like an acceptable option to add. We added something similar to contrib/go-chi/chi recently (#773).
In that one, we ended up calling the option WithStatusCheck, so maybe for consistency we can call this WithErrorCheck
We also just merged contrib/gorm.io/gorm.v1 which is where the next version of gorm moved. We should add the option there too to keep parity between gorm integration versions.
I wish ignore errors especially record not found that is unnecessary to classify as errors in my server.
The server queries by request from the client that can manipulate req body, then we always allow record_not_found error.
Most of record_not_found error makes me indifferent to see error rate dashboard.
To Extendability,I suggest adding an option that can ignore some type of errors like below
If you agree about it, I will make a PR
The text was updated successfully, but these errors were encountered: