1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 17:15:55 +00:00

some dbupdater improvements; fix schema 136 syntax for mysql

This commit is contained in:
Andrew Dolgov
2019-03-06 19:42:27 +03:00
parent 0d04e21006
commit 0881d0a00d
3 changed files with 24 additions and 17 deletions

View File

@@ -52,7 +52,7 @@ class DbUpdater {
$this->pdo->query($line); // PDO returns errors as exceptions now
} catch (PDOException $e) {
if ($html_output) {
print_error("Error: " . implode(", ", $this->pdo->errorInfo()));
print "<div class='text-error'>Error: " . implode(", ", $this->pdo->errorInfo()) . "</div>";
} else {
Debug::log("Error: " . implode(", ", $this->pdo->errorInfo()));
}