diff --git a/modules/monitoring/library/Monitoring/Command/Transport/LocalCommandFile.php b/modules/monitoring/library/Monitoring/Command/Transport/LocalCommandFile.php index 83c066e97..c3133d469 100644 --- a/modules/monitoring/library/Monitoring/Command/Transport/LocalCommandFile.php +++ b/modules/monitoring/library/Monitoring/Command/Transport/LocalCommandFile.php @@ -109,7 +109,7 @@ class LocalCommandFile implements CommandTransportInterface public function send(IcingaCommand $command, $now = null) { if (! isset($this->path)) { - throw new LogicException; + throw new LogicException('Can\'t send external Icinga Command. Path to the local command file is missing'); } $commandString = $this->renderer->render($command, $now); Logger::debug( diff --git a/modules/monitoring/library/Monitoring/Command/Transport/RemoteCommandFile.php b/modules/monitoring/library/Monitoring/Command/Transport/RemoteCommandFile.php index 613e66a84..d22e2c863 100644 --- a/modules/monitoring/library/Monitoring/Command/Transport/RemoteCommandFile.php +++ b/modules/monitoring/library/Monitoring/Command/Transport/RemoteCommandFile.php @@ -173,10 +173,10 @@ class RemoteCommandFile implements CommandTransportInterface public function send(IcingaCommand $command, $now = null) { if (! isset($this->path)) { - throw new LogicException; + throw new LogicException('Can\'t send external Icinga Command. Path to the remote command file is missing'); } if (! isset($this->host)) { - throw new LogicException; + throw new LogicException('Can\'t send external Icinga Command. Remote host is missing'); } $commandString = $this->renderer->render($command, $now); Logger::debug(