]> git.wh0rd.org Git - tt-rss.git/commitdiff
better error message on invalid schema in xml-export
authorAndrew Dolgov <fox@madoka.spb.ru>
Wed, 30 Nov 2005 08:36:54 +0000 (09:36 +0100)
committerAndrew Dolgov <fox@madoka.spb.ru>
Wed, 30 Nov 2005 08:36:54 +0000 (09:36 +0100)
xml-export.php

index 13ab65b9d1db7b3bf1029091ad80a777091f834f..c97b964fff3a78005da1c348e3da5ec871fc1ea0 100644 (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;
        }