mirror of
https://github.com/smogon/pokemon-showdown.git
synced 2026-10-01 22:01:41 -05:00
Fix crash in dexsearch
This commit is contained in:
@@ -153,6 +153,14 @@ if (!process.send) {
|
||||
} else {
|
||||
// This is the child
|
||||
|
||||
global.Config = require('../config/config.js');
|
||||
|
||||
if (Config.crashguard) {
|
||||
process.on('uncaughtException', err => {
|
||||
require('./crashlogger.js')(err, 'A dexsearch process', true);
|
||||
});
|
||||
}
|
||||
|
||||
global.Tools = require('../tools.js');
|
||||
global.toId = Tools.getId;
|
||||
Tools.includeData();
|
||||
|
||||
Reference in New Issue
Block a user