More explicit error

This commit is contained in:
マリウス 2020-10-17 21:13:27 +01:00
parent 2f0218f567
commit 2ecc0a70ca
No known key found for this signature in database
GPG key ID: C228EF0A530AF06F

View file

@ -100,7 +100,7 @@ func ParseTime(timeStr string) (time.Time, error) {
case TFRelHourMinute, TFRelHourFraction:
return RelToTime(timeStr, tfId)
default:
return time.Now(), errors.New("No match")
return time.Now(), errors.New("could not match passed time")
}
}