Remove RestconfError.ErrorType
[netconf.git] / restconf / restconf-nb-bierman02 / src / main / java / org / opendaylight / netconf / sal / rest / impl / PatchXmlBodyWriter.java
index a8ce65f18d74ef9f83b8a2dd4305ce6fbd4144a1..f9f3ae731019ad49d2d97e15ccf75d60699a6d3b 100644 (file)
@@ -109,7 +109,7 @@ public class PatchXmlBodyWriter implements MessageBodyWriter<PatchStatusContext>
 
         for (final RestconfError restconfError : errors) {
             writer.writeStartElement("error-type");
-            writer.writeCharacters(restconfError.getErrorType().getErrorTypeTag());
+            writer.writeCharacters(restconfError.getErrorType().elementBody());
             writer.writeEndElement();
 
             writer.writeStartElement("error-tag");