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