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)) {
|
||||
return $this->groupMap[$name];
|
||||
} else {
|
||||
throw new InvalidArgumentException(
|
||||
throw new InvalidArgumentException(sprintf(
|
||||
'Unable to lookup the group name for "%s"',
|
||||
$name
|
||||
);
|
||||
));
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user