init code
This commit is contained in:
1 parent
a7559b3f9d
commit
92a63c7885
43 files changed
+1115
No files matched your search
@@ -0,0 +1,9 @@
|
||||
package errorx
|
||||
|
||||
import "github.com/rs/zerolog/log"
|
||||
|
||||
func PanicOnError(err error, msg string) {
|
||||
if err != nil {
|
||||
log.Panic().Err(err).Msg(msg)
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user