feat: build wahrwelt A/D toolkit
This commit is contained in:
1 parent
303438d206
commit
653924d8c6
564 files changed
+36310
-49998
No files matched your search
@@ -0,0 +1,13 @@
|
||||
package utils
|
||||
|
||||
import (
|
||||
"github.com/sirupsen/logrus"
|
||||
"google.golang.org/grpc/codes"
|
||||
"google.golang.org/grpc/status"
|
||||
)
|
||||
|
||||
func WrapErrorf(code codes.Code, fmt string, values ...interface{}) error {
|
||||
err := status.Errorf(code, fmt, values...)
|
||||
logrus.Errorf("%v", err)
|
||||
return err // nolint
|
||||
}
|
||||
Reference in new issue
Block a user