Skip to content

Commit

Permalink
Fix a message typo
Browse files Browse the repository at this point in the history
Fixed a typo in a message used to describe an error that could occur
when attempting to decode a JSON-formatted representation of a
control.  In the event that the JSON object was missing the required
"criticality" field, the message would incorrectly report that it
was missing the "oid" field (although it did still indicate that the
issue was with the criticality).
  • Loading branch information
dirmgr committed May 20, 2024
1 parent 0d1ba3c commit fde3b8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/com/unboundid/ldap/sdk/JSONControlDecodeHelper.java
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ public JSONControlDecodeHelper(@NotNull final JSONObject controlObject,
{
throw new LDAPException(ResultCode.DECODING_ERROR,
ERR_JSON_CONTROL_MISSING_CRITICALITY.get(
controlObject.toSingleLineString(), JSON_FIELD_OID));
controlObject.toSingleLineString(), JSON_FIELD_CRITICALITY));
}

criticality = criticalityObject;
Expand Down

0 comments on commit fde3b8a

Please sign in to comment.