From ca9fe1b89a58f25e4d7ffa09c487b72f5312c8e6 Mon Sep 17 00:00:00 2001 From: Shoghi Cervantes Date: Tue, 18 Nov 2014 13:46:00 +0100 Subject: [PATCH] Improved and fixed command exception message, closes #2301 --- src/pocketmine/command/SimpleCommandMap.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pocketmine/command/SimpleCommandMap.php b/src/pocketmine/command/SimpleCommandMap.php index 571d833cf..44a85d312 100644 --- a/src/pocketmine/command/SimpleCommandMap.php +++ b/src/pocketmine/command/SimpleCommandMap.php @@ -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();