mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-20 16:00:20 +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{
|
||||
$target->execute($sender, $sentCommandLabel, $args);
|
||||
}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();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user