From 0bb7260eb664c0b90c68e7a422a09f6e0f14bc7b Mon Sep 17 00:00:00 2001 From: Ruud Senden <8635138+rsenden@users.noreply.github.com> Date: Thu, 5 Dec 2024 13:51:43 +0100 Subject: [PATCH] fix: `fcli sc-sast scan start`: Output root exception if error occurs while determining .NET version --- .../sc_sast/scan/cli/mixin/SCSastScanStartPackageOptions.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fcli-core/fcli-sc-sast/src/main/java/com/fortify/cli/sc_sast/scan/cli/mixin/SCSastScanStartPackageOptions.java b/fcli-core/fcli-sc-sast/src/main/java/com/fortify/cli/sc_sast/scan/cli/mixin/SCSastScanStartPackageOptions.java index 19dcf43923..9c6d964c72 100644 --- a/fcli-core/fcli-sc-sast/src/main/java/com/fortify/cli/sc_sast/scan/cli/mixin/SCSastScanStartPackageOptions.java +++ b/fcli-core/fcli-sc-sast/src/main/java/com/fortify/cli/sc_sast/scan/cli/mixin/SCSastScanStartPackageOptions.java @@ -51,7 +51,7 @@ private void setDotNetProperties(File packageFile) { .findFirst() .ifPresent(this::setDotNetProperties); } catch (IOException e) { - throw new IllegalStateException("Unable to determine .NET version (if applicable) from package file"); + throw new IllegalStateException("Unable to determine .NET version (if applicable) from package file", e); } }