Rework body formatting wiring
[netconf.git] / protocol / restconf-api / src / main / java / org / opendaylight / restconf / api / query / FieldsParam.java
index 2a0cd640ba38b74a7d00bd346eae5f7b689b8d23..d81d8000b4f9de1aa3859f67409f58cadccf090d 100644 (file)
@@ -114,7 +114,8 @@ public final class FieldsParam implements RestconfQueryParam<FieldsParam> {
         try {
             return parse(uriValue);
         } catch (ParseException e) {
-            throw new IllegalArgumentException(e.getMessage() + " [at offset " + e.getErrorOffset() + "]", e);
+            throw new IllegalArgumentException("Invalid " + uriName + " value: " + e.getMessage()
+            + " [at offset " + e.getErrorOffset() + "]", e);
         }
     }