mirror of
https://github.com/taigrr/systemctl.git
synced 2025-10-27 18:20:24 +08:00
Clean up errors and messages
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user