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

This commit is contained in:
Chris Miles
2023-06-19 11:55:32 -05:00
committed by GitHub
parent 66e377fd4a
commit 6d7beb1796
4 changed files with 83 additions and 12 deletions
+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");