mirror of
https://github.com/smogon/pokemon-showdown.git
synced 2026-05-27 10:59:16 -05:00
Merge pull request #2008 from SolarisFox/patch-6
Proper error handling in /dexsearch and /movesearch
This commit is contained in:
commit
250bc0d617
|
|
@ -642,7 +642,7 @@ var commands = exports.commands = {
|
|||
break;
|
||||
|
||||
default:
|
||||
return this.sendReplyBox("Something broke! PM SolarisFox here or on the Smogon forums with the command you tried.");
|
||||
throw new Error("/dexsearch search category '" + search + "' was unrecognised.");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -1025,7 +1025,7 @@ var commands = exports.commands = {
|
|||
break;
|
||||
|
||||
default:
|
||||
return this.sendReplyBox("Something broke! PM SolarisFox here or on the Smogon forums with the command you tried.");
|
||||
throw new Error("/movesearch search category '" + search + "' was unrecognised.");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user