Clean up errors and messages

This commit is contained in:
Tai Groot
2021-05-16 16:17:12 -07:00
parent 7325dda66d
commit 3fcd88d966
3 changed files with 29 additions and 24 deletions

View File

@@ -19,7 +19,7 @@ func GetStartTime(ctx context.Context, unit string, opts Options) (time.Time, er
}
// ExecMainStartTimestamp returns an empty string if the unit is not running
if value == "" {
return time.Unix(0, 0), ErrUnitNotRunning
return time.Unix(0, 0), ErrUnitNotActive
}
return time.Parse(dateFormat, value)
}