Skip to content

Commit

Permalink
Check scanner error
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacalz committed Dec 11, 2024
1 parent f7955d5 commit 2686165
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions interactive.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,11 @@ func runInteractiveMode(control *remote.Control) {
exitWithError(errInvalidCommand)
}
}

err := input.Err()
if err != nil {
exitWithError(err)
}
}

func handlePowerCommand(subcommands []string, control *remote.Control) {
Expand Down

0 comments on commit 2686165

Please sign in to comment.