6 ms·
In general, the way you output errors to the client and the errors you log are two totally different things. This is a slight tweak from the problem the author
by Xeoncross 3y ago
In general, the way you output errors to the client and the errors you log are two totally different things. This is a slight tweak from the problem the author is attempting to solve by letting the client see the error.
Like the author, I created a special error interface I can look for when returning client errors: https://github.com/Xeoncross/public-error-go https://github.com/Xeoncross/public-error-go