mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-16 19:59:11 +00:00
Improved and fixed command exception message, closes #2301
This commit is contained in:
@@ -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();
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user