mirror of
https://github.com/Threnklyn/zeit.git
synced 2026-05-18 21:03:30 +02:00
More explicit error
This commit is contained in:
+1
-1
@@ -100,7 +100,7 @@ func ParseTime(timeStr string) (time.Time, error) {
|
|||||||
case TFRelHourMinute, TFRelHourFraction:
|
case TFRelHourMinute, TFRelHourFraction:
|
||||||
return RelToTime(timeStr, tfId)
|
return RelToTime(timeStr, tfId)
|
||||||
default:
|
default:
|
||||||
return time.Now(), errors.New("No match")
|
return time.Now(), errors.New("could not match passed time")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user