Skip to content

Commit

Permalink
Fixed "Logging does not match problem in MessageProperty"
Browse files Browse the repository at this point in the history
See #201
  • Loading branch information
6d77 authored and timtay-microsoft committed Feb 8, 2018
1 parent dc4a30b commit c547c10
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ public MessageProperty(String name, String value) {
// Codes_SRS_MESSAGEPROPERTY_11_003: [If the value contains a character that is not in US-ASCII, the function shall throw an IllegalArgumentException.]
if (!usesValidChars(value))
{
logger.LogError("%s is a reserved IoT Hub message property name, method name is %s ", name, logger.getMethodName());
logger.LogError("%s is not a valid IoT Hub message property value, method name is %s ", value, logger.getMethodName());
String errMsg = String.format("%s is not a valid IoT Hub message property value.%n", value);
throw new IllegalArgumentException(errMsg);
}
Expand Down

0 comments on commit c547c10

Please sign in to comment.