* xmlWriterErrMsg: * @ctxt: a writer context * @error: the error number * @msg: the error message * * Handle a writer error */
| 120 | * Handle a writer error |
| 121 | */ |
| 122 | static void |
| 123 | xmlWriterErrMsg(xmlTextWriterPtr ctxt, xmlParserErrors error, |
| 124 | const char *msg) |
| 125 | { |
| 126 | if (ctxt != NULL) { |
| 127 | __xmlRaiseError(NULL, NULL, NULL, ctxt->ctxt, |
| 128 | NULL, XML_FROM_WRITER, error, XML_ERR_FATAL, |
| 129 | NULL, 0, NULL, NULL, NULL, 0, 0, "%s", msg); |
| 130 | } else { |
| 131 | __xmlRaiseError(NULL, NULL, NULL, NULL, NULL, XML_FROM_WRITER, error, |
| 132 | XML_ERR_FATAL, NULL, 0, NULL, NULL, NULL, 0, 0, "%s", msg); |
| 133 | } |
| 134 | } |
| 135 | |
| 136 | /** |
| 137 | * xmlWriterErrMsgInt: |
no test coverage detected