better error message on invalid schema in xml-export

This commit is contained in:
Andrew Dolgov 2005-11-30 09:36:54 +01:00
parent 5a66425944
commit ebb510ce61
1 changed files with 3 additions and 2 deletions

View File

@ -34,8 +34,9 @@
$schema_version = db_fetch_result($result, 0, "schema_version");
if ($schema_version != SCHEMA_VERSION) {
print "Error: database schema is invalid
(got version $schema_version; expected ".SCHEMA_VERSION.")";
print "<error>Source database schema is invalid
(got version $schema_version; expected ".SCHEMA_VERSION.")</error>";
print "</xmldb>";
return;
}