Rework body formatting wiring
[netconf.git] / protocol / restconf-api / src / main / java / org / opendaylight / restconf / api / query / PrettyPrintParam.java
index 6a70d3788327a41ecac1a21fe82a9ff45c38c389..9031fbd1d62f6cfd8c22e66505e4e22242c82a29 100644 (file)
@@ -39,7 +39,8 @@ public final class PrettyPrintParam implements RestconfQueryParam<PrettyPrintPar
         return switch (uriValue) {
             case "false" -> FALSE;
             case "true" -> TRUE;
-            default -> throw new IllegalArgumentException("Value can be 'false' or 'true', not '" + uriValue + "'");
+            default -> throw new IllegalArgumentException(
+                "Invalid " + uriName + " value: Value can be 'false' or 'true', not '" + uriValue + "'");
         };
     }