Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
Igor Urisman authored and Igor Urisman committed May 29, 2024
1 parent 11f73c6 commit ec9e250
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ public WeightedRandomTargetingHook(YamlNode<?> init) {
if (valueNode instanceof YamlScalar<?> scalarNode && scalarNode.value() instanceof String string) {
return string;
} else {
throw new VariantException(
"Unable to value [%s] to a string literal".formatted(valueNode));
// Ignore location part of the message
throw new VariantException("Value is not a string literal");
}
}
)
Expand Down

0 comments on commit ec9e250

Please sign in to comment.