Skip to content

Commit

Permalink
Issue 270 pass exception to catch throw in LicenseInfoFactory.java's …
Browse files Browse the repository at this point in the history
…parseSPDXLicenseStringCompatV2 method

Signed-off-by: gabe <[email protected]>
  • Loading branch information
gabetrau authored and goneall committed Jan 2, 2025
1 parent 65c57fd commit e02c365
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/org/spdx/library/LicenseInfoFactory.java
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ public static org.spdx.library.model.v2.license.AnyLicenseInfo parseSPDXLicenseS
} catch (LicenseParserException e) {
throw new InvalidLicenseStringException(e.getMessage(),e);
} catch (InvalidSPDXAnalysisException e) {
throw new InvalidLicenseStringException("Unexpected SPDX error parsing license string");
throw new InvalidLicenseStringException("Unexpected SPDX error parsing license string", e);
}
}

Expand Down

0 comments on commit e02c365

Please sign in to comment.