lib/cms_scanner.rb in cms_scanner-0.0.41.7 vs lib/cms_scanner.rb in cms_scanner-0.0.41.8
- old
+ new
@@ -138,10 +138,10 @@
controllers.run
rescue OptParseValidator::NoRequiredOption => e
@run_error = e
formatter.output('@usage', msg: e.message)
- rescue StandardError, SignalException => e
+ rescue NoMemoryError, ScriptError, SecurityError, SignalException, StandardError, SystemStackError => e
@run_error = e
formatter.output('@scan_aborted',
reason: e.is_a?(Interrupt) ? 'Canceled by User' : e.message,
trace: e.backtrace,