Skip to content

Commit

Permalink
Raise error on scan failure
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorianVeaux committed Oct 10, 2024
1 parent 405ec0e commit 3305587
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/agent/subcommands/snmp/command.go
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,7 @@ func scanDevice(connParams *snmpConnectionParams, args argsType, snmpScanner snm

err = snmpScanner.RunDeviceScan(snmp, namespace)
if err != nil {
fmt.Fprintf(os.Stderr, "Unable to perform device scan: %v\n", err)
return fmt.Errorf("Unable to perform device scan: %v\n", err)
}
return nil
}
Expand Down

0 comments on commit 3305587

Please sign in to comment.