init code
This commit is contained in:
9
internal/utils/errorx/error.go
Normal file
9
internal/utils/errorx/error.go
Normal file
@@ -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