Command::fail(): construct IcingaException printf-like

The first argument of IcingaException::__construct() must be a printf-like format string, but Command::fail() must accept any message string.
This commit is contained in:
Alexander A. Klimov 2015-11-03 10:45:39 +01:00
parent 71c5fd0bf7
commit e170d5b79a
1 changed files with 1 additions and 1 deletions

View File

@ -127,7 +127,7 @@ abstract class Command
public function fail($msg)
{
throw new IcingaException($msg);
throw new IcingaException('%s', $msg);
}
public function getDefaultActionName()