Do not fake an errorMessage for pattern constraints
[yangtools.git] / yang / yang-data-impl / src / main / java / org / opendaylight / yangtools / yang / data / impl / codec / CompiledPatternContext.java
index afddefdcd771338a48fd44da8399cd41ae6e8618..3806bf35f7f38539bbeeb2332a0d0b2d6f2fe663 100644 (file)
@@ -45,7 +45,7 @@ class CompiledPatternContext {
                 throw new IllegalArgumentException(errorMessage);
             }
 
-            throw new IllegalArgumentException("Value " + str + " " + (invert ? "matches" : "does not match")
+            throw new IllegalArgumentException("Value '" + str + "' " + (invert ? "matches" : "does not match")
                     + " regular expression '" + regEx + "'");
         }
     }