mirror of
https://github.com/ClusterCockpit/cc-backend
synced 2025-07-23 12:51:40 +02:00
Review fatalf log calls and messages
This commit is contained in:
@@ -22,8 +22,7 @@ func parseDate(in string) int64 {
|
||||
if in != "" {
|
||||
t, err := time.ParseInLocation(shortForm, in, loc)
|
||||
if err != nil {
|
||||
fmt.Printf("date parse error %v", err)
|
||||
os.Exit(0)
|
||||
log.Abortf("Archive Manager Main: Date parse failed with input: '%s'\nError: %s\n", in, err.Error())
|
||||
}
|
||||
return t.Unix()
|
||||
}
|
||||
|
Reference in New Issue
Block a user