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…
Reference in New Issue