Skip to content
This repository was archived by the owner on Jan 3, 2023. It is now read-only.

Commit e33c7bb

Browse files
committed
Raise an exception if the target can't be scanned
1 parent aeb6325 commit e33c7bb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

bin/oscapd-evaluate

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,7 @@ def cli_scan(args, config):
178178
"in profiles applicable to target '%s': %s"
179179
% (args.profile, target, e.message)
180180
)
181+
raise RuntimeError
181182
try:
182183
standard_scan_results, stdout, stderr, exit_code = \
183184
es.evaluate(config)

0 commit comments

Comments
 (0)