keon94 commented on code in PR #5609:
URL:
https://github.com/apache/incubator-devlake/pull/5609#discussion_r1251483647
##########
backend/core/errors/util.go:
##########
@@ -28,3 +28,17 @@ func Is(err, target error) bool {
func As(err error, target any) bool {
return errors.As(err, &target)
}
+
+func Must(err error) {
Review Comment:
Ok. Although for multi-wrapping, there is no harm as that doesn't mess with
the status_code of the error. If you wrap a 400-type error with a Default
error, for example, the new error just inherits that 400 status. Just wanted to
clarify.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]