Skip to content

Commit 3ae3563

Browse files
authored
Merge pull request #699 from cakephp/dereuromark-patch-1
Fix exception message
2 parents 2df651f + 9a091ea commit 3ae3563

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Authenticator/AuthenticatorCollection.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,12 @@ protected function _resolveClassName(string $class): ?string
8484
*/
8585
protected function _throwMissingClassError(string $class, ?string $plugin): void
8686
{
87+
if ($plugin) {
88+
$class = $plugin . '.' . $class;
89+
}
90+
8791
$message = sprintf('Authenticator class `%s` was not found.', $class);
92+
8893
throw new RuntimeException($message);
8994
}
9095
}

0 commit comments

Comments
 (0)