Change recoverable errors to warn log level to stop shell from exiting
This commit is contained in:
parent
bf1cda2e7e
commit
70dde9554d
@ -36,7 +36,8 @@ var timeCmd = &cobra.Command{
|
|||||||
// Ensure required arguments
|
// Ensure required arguments
|
||||||
if len(args) != 1 {
|
if len(args) != 1 {
|
||||||
cmd.Usage()
|
cmd.Usage()
|
||||||
log.Fatal().Msg("Command time requires one argument")
|
log.Warn().Msg("Command time requires one argument")
|
||||||
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
// Connect to itd UNIX socket
|
// Connect to itd UNIX socket
|
||||||
|
@ -60,7 +60,8 @@ var upgradeCmd = &cobra.Command{
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
cmd.Usage()
|
cmd.Usage()
|
||||||
log.Fatal().Msg("Upgrade command requires either archive or init packet and firmware.")
|
log.Warn().Msg("Upgrade command requires either archive or init packet and firmware.")
|
||||||
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
// Encode response into connection
|
// Encode response into connection
|
||||||
|
Loading…
Reference in New Issue
Block a user