mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-29 16:54:04 +02:00
Fix incorrect message for invalid states
This commit is contained in:
parent
7c6c793ac3
commit
648cdd7ef4
@ -191,7 +191,7 @@ class Host extends MonitoredObject
|
||||
$text = $translate ? mt('monitoring', 'PENDING') : 'pending';
|
||||
break;
|
||||
default:
|
||||
throw new InvalidArgumentException('Invalid host state \'%s\'', $state);
|
||||
throw new InvalidArgumentException(sprintf('Invalid host state \'%s\'', $state));
|
||||
}
|
||||
return $text;
|
||||
}
|
||||
|
@ -206,7 +206,7 @@ class Service extends MonitoredObject
|
||||
$text = $translate ? mt('monitoring', 'PENDING') : 'pending';
|
||||
break;
|
||||
default:
|
||||
throw new InvalidArgumentException('Invalid service state \'%s\'', $state);
|
||||
throw new InvalidArgumentException(sprintf('Invalid service state \'%s\'', $state));
|
||||
}
|
||||
return $text;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user