|
|
|
|
|
by murph-almighty
1720 days ago
|
|
One perk I've enjoyed with error verbosity is the ability to spit out different logs depending on where in the function you've failed. I'm not super familiar with the shortcut being described but if I could do something like: ```x := potentiallyBuggyFunction ? genericErrorHandler("log message here", http.StatusNotFound,...)``` Where the `?` is kind of like a null coalescing operator, it might help? |
|