Skip to content

Commit 8a5136b

Browse files
committed
Change warning and error message
1 parent b42ea7d commit 8a5136b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

redrays_scanner.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -859,15 +859,15 @@ def main():
859859
if vulnerability_count > 0:
860860
if threshold_breached:
861861
logger.error(
862-
f"Found {vulnerability_count} vulnerabilities with {args.threshold} or higher severity. See report at: {report_path}")
862+
f"Vulnerability(ies) have been found with {args.threshold} or higher severity. See report at: {report_path}")
863863
sys.exit(1) # Exit with error if threshold is breached
864864
else:
865865
if args.threshold:
866866
pass
867-
# logger.warning(
868-
# f"Found {vulnerability_count} vulnerabilities, but none exceed the {args.threshold} threshold. See report at: {report_path}")
867+
logger.warning(
868+
f"Vulnerability(ies) have been found, but none exceed the {args.threshold} threshold. See report at: {report_path}")
869869
else:
870-
logger.warning(f"Found {vulnerability_count} vulnerabilities. See report at: {report_path}")
870+
logger.warning(f"Vulnerability(ies) have been found. See report at: {report_path}")
871871
sys.exit(0) # Permit build to continue if no threshold breach
872872
else:
873873
logger.info("No vulnerabilities found in the scanned files.")

0 commit comments

Comments
 (0)