Closed abbbe closed 9 years ago
To reproduce
abb@e6510x:~/dvp/pynessus/scripts$ python skanner.py -c nessus.conf -i localhost -n test201411240745 -p "nonexistent" abb@e6510x:~/dvp/pynessus/scripts$ echo $? 0
Instead, the scanner should die (throw an exception for example) and return non-zero exit code.
Well, I've found it logs the error in the log file. Perhaps errors (and more critical problems) should be always echoed to sys.stderr too. Not sure how to address exit-code issue in a consistent way.
To reproduce
abb@e6510x:~/dvp/pynessus/scripts$ python skanner.py -c nessus.conf -i localhost -n test201411240745 -p "nonexistent" abb@e6510x:~/dvp/pynessus/scripts$ echo $? 0
Instead, the scanner should die (throw an exception for example) and return non-zero exit code.