From a2cd5d63f157174bb65879fea1330435b335522f Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Wed, 22 Apr 2015 09:36:45 +0200 Subject: [PATCH] UserBackend: Wrap config directives as part of errors in single quotes --- library/Icinga/Authentication/User/UserBackend.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/library/Icinga/Authentication/User/UserBackend.php b/library/Icinga/Authentication/User/UserBackend.php index 40d76f398..89bd1f56e 100644 --- a/library/Icinga/Authentication/User/UserBackend.php +++ b/library/Icinga/Authentication/User/UserBackend.php @@ -152,7 +152,7 @@ abstract class UserBackend implements Countable if (! ($backendType = strtolower($backendConfig->backend))) { throw new ConfigurationError( - 'Authentication configuration for backend "%s" is missing the backend directive', + 'Authentication configuration for backend "%s" is missing the \'backend\' directive', $name ); } @@ -179,7 +179,7 @@ abstract class UserBackend implements Countable if ($backendConfig->resource === null) { throw new ConfigurationError( - 'Authentication configuration for backend "%s" is missing the resource directive', + 'Authentication configuration for backend "%s" is missing the \'resource\' directive', $name ); } @@ -208,13 +208,14 @@ abstract class UserBackend implements Countable case 'ldap': if ($backendConfig->user_class === null) { throw new ConfigurationError( - 'Authentication configuration for backend "%s" is missing the user_class directive', + 'Authentication configuration for backend "%s" is missing the \'user_class\' directive', $name ); } if ($backendConfig->user_name_attribute === null) { throw new ConfigurationError( - 'Authentication configuration for backend "%s" is missing the user_name_attribute directive', + 'Authentication configuration for backend "%s" is' + . ' missing the \'user_name_attribute\' directive', $name ); }