Skip to content
This repository has been archived by the owner on Feb 9, 2021. It is now read-only.

Commit

Permalink
Improved and fixed command exception message, closes #2301
Browse files Browse the repository at this point in the history
  • Loading branch information
shoghicp committed Nov 18, 2014
1 parent 9fd6a69 commit ca9fe1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pocketmine/command/SimpleCommandMap.php
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ public function dispatch(CommandSender $sender, $commandLine){
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();

Expand Down

0 comments on commit ca9fe1b

Please sign in to comment.