Skip to content

Commit

Permalink
Fix missing mysqli_connect_errno (#1346)
Browse files Browse the repository at this point in the history
  • Loading branch information
sy-records committed Mar 28, 2022
1 parent 6100695 commit 4be93f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion var/Typecho/Db/Adapter/Mysqli.php
Expand Up @@ -64,7 +64,7 @@ public function connect(Config $config): \mysqli
}

/** 数据库异常 */
throw new ConnectionException("Couldn't connect to database.");
throw new ConnectionException("Couldn't connect to database.", mysqli_connect_errno());
}

/**
Expand Down

0 comments on commit 4be93f2

Please sign in to comment.