Skip to content

Commit

Permalink
fix(spdx-utils): List correct choices in an exception message
Browse files Browse the repository at this point in the history
Signed-off-by: Sebastian Schuberth <[email protected]>
sschuberth committed May 18, 2024
1 parent ba9541a commit d42863c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/spdx/src/main/kotlin/SpdxExpression.kt
Original file line number Diff line number Diff line change
@@ -302,7 +302,7 @@ class SpdxCompoundExpression(
override fun applyChoice(choice: SpdxExpression, subExpression: SpdxExpression): SpdxExpression {
if (!subExpression.isSubExpression(choice)) {
throw InvalidLicenseChoiceException(
"$choice is not a valid choice for $subExpression. Valid choices are: ${validChoices()}."
"$choice is not a valid choice for $subExpression. Valid choices are: ${subExpression.validChoices()}."
)
}

0 comments on commit d42863c

Please sign in to comment.