Commit 54d949fb authored by Adam Martinson's avatar Adam Martinson Committed by Alexandre Julliard

msxml3: Fix a few error messages.

parent 2f0e73f8
......@@ -2656,9 +2656,15 @@ static HRESULT WINAPI domdoc_validateNode(
{
++validated;
/* TODO: get a real error code here */
TRACE("schema validation failed\n");
if (hr != S_OK)
if (hr == S_OK)
{
TRACE("schema validation succeeded\n");
}
else
{
ERR("schema validation failed\n");
err_code = E_XML_INVALID;
}
}
else
{
......@@ -2669,7 +2675,7 @@ static HRESULT WINAPI domdoc_validateNode(
if (!validated)
{
TRACE("no DTD or schema found\n");
ERR("no DTD or schema found\n");
err_code = E_XML_NODTD;
hr = S_FALSE;
}
......
......@@ -1356,6 +1356,8 @@ HRESULT SchemaCache_validate_tree(IXMLDOMSchemaCollection2* iface, xmlNodePtr tr
* do we try to load from that? */
if (schema)
return Schema_validate_tree(schema, tree);
else
WARN("no schema found for xmlns=%s\n", get_node_nsURI(tree));
return E_FAIL;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment