mirror of
https://github.com/smogon/pokemon-showdown.git
synced 2026-03-21 17:25:10 -05:00
SQL: Log process ID in errors for easier debugging
This commit is contained in:
parent
1ee0986f67
commit
8bae904193
|
|
@ -169,6 +169,7 @@ export class SQLDatabaseManager extends QueryProcessManager<DatabaseQuery, any>
|
|||
if (!this.isParentProcess) this.setupDatabase();
|
||||
}
|
||||
private onError(err: Error, query: DatabaseQuery) {
|
||||
err.message += ` [process ${process.pid}]`
|
||||
if (this.options.onError) {
|
||||
const result = this.options.onError(err, query, false);
|
||||
if (result) return result;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user