Remove RestconfError.ErrorTag
[netconf.git] / restconf / restconf-nb-bierman02 / src / main / java / org / opendaylight / netconf / sal / rest / impl / PatchJsonBodyWriter.java
index cdca49d7ca73e7e9995702656eb623ce827fadd7..63586af75b220ae8210864cae52102df902d4c86 100644 (file)
@@ -100,7 +100,7 @@ public class PatchJsonBodyWriter implements MessageBodyWriter<PatchStatusContext
         for (final RestconfError restconfError : errors) {
             jsonWriter.beginObject();
             jsonWriter.name("error-type").value(restconfError.getErrorType().elementBody());
-            jsonWriter.name("error-tag").value(restconfError.getErrorTag().getTagValue());
+            jsonWriter.name("error-tag").value(restconfError.getErrorTag().elementBody());
 
             // optional node
             if (restconfError.getErrorPath() != null) {