Improved and fixed command exception message, closes #2301

This commit is contained in:
Shoghi Cervantes 2014-11-18 13:46:00 +01:00
parent 9fd6a695f6
commit ca9fe1b89a

View File

@ -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();