]> granicus.if.org Git - libexpat/commitdiff
XML_ErrorString: handle XML_ERROR_INVALID_ARGUMENT
authorHans Wennborg <hans@chromium.org>
Wed, 25 Oct 2017 08:30:52 +0000 (01:30 -0700)
committerSebastian Pipping <sebastian@pipping.org>
Wed, 25 Oct 2017 11:42:44 +0000 (13:42 +0200)
Previously, this enum didn't have any error string.

expat/lib/xmlparse.c

index 8b93902920032fb298c8748cfb726762d92c8ff6..ee5534cc4cf0b76648c5ce7b80fb60a28108c20d 100644 (file)
@@ -2391,6 +2391,8 @@ XML_ErrorString(enum XML_Error code)
     return XML_L("reserved prefix (xmlns) must not be declared or undeclared");
   case XML_ERROR_RESERVED_NAMESPACE_URI:
     return XML_L("prefix must not be bound to one of the reserved namespace names");
+  case XML_ERROR_INVALID_ARGUMENT:
+    return XML_L("invalid argument");
   }
   return NULL;
 }