Skip to content

Commit c2a497b

Browse files
authored
Merge pull request #11 from asdf-format/eslavich-get-optional
Fix bug in BooleanAsdfNode error message
2 parents ce73aa2 + 55e6b7c commit c2a497b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

asdf-core/src/main/java/org/asdfformat/asdf/node/impl/BooleanAsdfNode.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public String getTag() {
5252
public boolean asBoolean() {
5353
final Boolean result = BOOLEAN_VALUES.get(value.toLowerCase());
5454
if (result == null) {
55-
throw new RuntimeException(String.format("Unrecognized boolean value: %s", result));
55+
throw new RuntimeException(String.format("Unrecognized boolean value: %s", value));
5656
}
5757
return result;
5858
}

0 commit comments

Comments
 (0)