[MySQL] Fix MySQL Query error formatting (#3808)

This commit is contained in:
Chris Miles authored and GitHub committed 2023-12-27 20:04:18 -06:00
1 parent 79cc2d5351
commit 2db84f5a4f
1 file changed
+1 -1
+1 -1
View File
@@ -138,7 +138,7 @@ MySQLRequestResult DBcore::QueryDatabase(const char *query, uint32 querylen, boo
* Error logging
*/
if (mysql_errno(mysql) > 0 && query[0] != '\0') {
LogMySQLError("[{}] [{}]\n[{}]", mysql_errno(mysql), mysql_error(mysql), query);
LogMySQLError("MySQL Error ({}) [{}] Query [{}]", mysql_errno(mysql), mysql_error(mysql), query);
}
return MySQLRequestResult(nullptr, 0, 0, 0, 0, mysql_errno(mysql), errorBuffer);