Skip to content

Commit

Permalink
Add missing err check
Browse files Browse the repository at this point in the history
  • Loading branch information
ShellUnease committed Apr 23, 2024
1 parent d3f4438 commit 3e5c06a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmd/info.go
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,9 @@ func displayActiveMachine(header string) error {
config.GlobalConfig.Logger.Debug(fmt.Sprintf("Machine Type: %s", machineType))

expiresTime, err := utils.GetExpiredTime(machineType)
if err != nil {
return err
}
config.GlobalConfig.Logger.Debug(fmt.Sprintf("Expires Time: %s", expiresTime))

config.GlobalConfig.Logger.Info("Active machine found !")
Expand Down

0 comments on commit 3e5c06a

Please sign in to comment.