Files
crypto-price-bot/internal/utils/errorx/error.go
2024-10-24 09:53:23 +07:00

10 lines
149 B
Go

package errorx
import "github.com/rs/zerolog/log"
func PanicOnError(err error, msg string) {
if err != nil {
log.Panic().Err(err).Msg(msg)
}
}