better error message on invalid schema in xml-export
This commit is contained in:
parent
5a66425944
commit
ebb510ce61
|
@ -34,8 +34,9 @@
|
||||||
$schema_version = db_fetch_result($result, 0, "schema_version");
|
$schema_version = db_fetch_result($result, 0, "schema_version");
|
||||||
|
|
||||||
if ($schema_version != SCHEMA_VERSION) {
|
if ($schema_version != SCHEMA_VERSION) {
|
||||||
print "Error: database schema is invalid
|
print "<error>Source database schema is invalid
|
||||||
(got version $schema_version; expected ".SCHEMA_VERSION.")";
|
(got version $schema_version; expected ".SCHEMA_VERSION.")</error>";
|
||||||
|
print "</xmldb>";
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue