summaryrefslogtreecommitdiff
path: root/xml-export.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2005-11-30 09:36:54 +0100
committerAndrew Dolgov <[email protected]>2005-11-30 09:36:54 +0100
commitebb510ce61d2c3594fcaea81d2f3f0bcc9b635fa (patch)
tree533415086bb3626c9e37b409d71c2b617723327a /xml-export.php
parent5a66425944e4fc829d0712fc3b9d512a0b264f49 (diff)
better error message on invalid schema in xml-export
Diffstat (limited to 'xml-export.php')
-rw-r--r--xml-export.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/xml-export.php b/xml-export.php
index 13ab65b9d..c97b964ff 100644
--- a/xml-export.php
+++ b/xml-export.php
@@ -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;
}