mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-03 08:39:53 +00:00
Improved and fixed command exception message, closes #2301
This commit is contained in:
parent
9fd6a695f6
commit
ca9fe1b89a
@ -181,7 +181,7 @@ class SimpleCommandMap implements CommandMap{
|
|||||||
try{
|
try{
|
||||||
$target->execute($sender, $sentCommandLabel, $args);
|
$target->execute($sender, $sentCommandLabel, $args);
|
||||||
}catch(\Exception $e){
|
}catch(\Exception $e){
|
||||||
$this->server->getLogger()->critical("Unhandled exception executing command '". $commandLine ,"' in ". $target);
|
$this->server->getLogger()->critical("Unhandled exception executing command '". $commandLine ."' in ". $target.": ".$e->getMessage());
|
||||||
}
|
}
|
||||||
$target->timings->stopTiming();
|
$target->timings->stopTiming();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user