[Database] Fix multi-statement error reporting (#3425)

This commit is contained in:
Chris Miles authored and GitHub committed 2023-06-19 11:55:32 -05:00
1 parent 66e377fd4a
commit 6d7beb1796
4 files changed
+83 -12

No files matched your search

+1 -1
View File
@@ -183,7 +183,7 @@ bool DatabaseUpdate::UpdateManifest(
// ignore empty query result "errors"
if (r.ErrorNumber() != 1065 && !r.ErrorMessage().empty()) {
LogError("[{}]", r.ErrorMessage());
LogError("(#{}) [{}]", r.ErrorNumber(), r.ErrorMessage());
errored_migration = true;
LogInfo("Required database update failed. This could be a problem");