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:
parent
71c5fd0bf7
commit
e170d5b79a
|
@ -127,7 +127,7 @@ abstract class Command
|
|||
|
||||
public function fail($msg)
|
||||
{
|
||||
throw new IcingaException($msg);
|
||||
throw new IcingaException('%s', $msg);
|
||||
}
|
||||
|
||||
public function getDefaultActionName()
|
||||
|
|
Loading…
Reference in New Issue