mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-29 08:44:11 +02:00
use sprintf() for InvalidArgumentException
This commit is contained in:
parent
7360e7070f
commit
596e352761
@ -359,10 +359,10 @@ abstract class GroupMembershipResolver
|
|||||||
if (array_key_exists($name, $this->groupMap)) {
|
if (array_key_exists($name, $this->groupMap)) {
|
||||||
return $this->groupMap[$name];
|
return $this->groupMap[$name];
|
||||||
} else {
|
} else {
|
||||||
throw new InvalidArgumentException(
|
throw new InvalidArgumentException(sprintf(
|
||||||
'Unable to lookup the group name for "%s"',
|
'Unable to lookup the group name for "%s"',
|
||||||
$name
|
$name
|
||||||
);
|
));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user