diff options
-rw-r--r-- | lib/Chat/Command/Executor.php | 2 | ||||
-rw-r--r-- | lib/Chat/Command/ShellExecutor.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/Chat/Command/Executor.php b/lib/Chat/Command/Executor.php index cfe8d8e53..a04b4c268 100644 --- a/lib/Chat/Command/Executor.php +++ b/lib/Chat/Command/Executor.php @@ -198,7 +198,7 @@ class Executor { ); } catch (\InvalidArgumentException $e) { $this->logger->logException($e); - return ''; + return $this->l->t('An error occurred while running the command. Please ask an administrator to check the logs.'); } } } diff --git a/lib/Chat/Command/ShellExecutor.php b/lib/Chat/Command/ShellExecutor.php index b2a735d92..358ddcc72 100644 --- a/lib/Chat/Command/ShellExecutor.php +++ b/lib/Chat/Command/ShellExecutor.php @@ -103,7 +103,7 @@ class ShellExecutor { @exec($cmd, $output, $returnCode); if ($returnCode) { - throw new \InvalidArgumentException('Chat command failed with return code: ' . $returnCode); + throw new \InvalidArgumentException('Chat command failed [Code: ' . $returnCode . ']: ' . $cmd); } return implode("\n", $output); |