Do not panic when a regex doesn't compile

Show proper error message instead
fix #58
This commit is contained in:
ppom
2024-01-04 12:00:00 +01:00
parent f662a485b9
commit 9b766aa2b8
2 changed files with 8 additions and 5 deletions

View File

@ -76,6 +76,5 @@ func Fatalln(args ...any) {
}
func Fatalf(format string, args ...any) {
level := FATAL
log.Fatalf(level.String()+format, args)
log.Fatalf(FATAL.String()+format, args)
}