diff --git a/src/Authenticator/AuthenticatorCollection.php b/src/Authenticator/AuthenticatorCollection.php index ec21ef2f..0a5f8f06 100644 --- a/src/Authenticator/AuthenticatorCollection.php +++ b/src/Authenticator/AuthenticatorCollection.php @@ -84,7 +84,12 @@ protected function _resolveClassName(string $class): ?string */ protected function _throwMissingClassError(string $class, ?string $plugin): void { + if ($plugin) { + $class = $plugin . '.' . $class; + } + $message = sprintf('Authenticator class `%s` was not found.', $class); + throw new RuntimeException($message); } }