mirror of
https://github.com/danog/amp.git
synced 2024-11-30 04:29:08 +01:00
Remove fallback part from error messages
This commit is contained in:
parent
28bb6068f1
commit
e589f2d935
@ -40,14 +40,14 @@ class DriverFactory {
|
||||
|
||||
if (!\class_exists($driver)) {
|
||||
throw new \Error(\sprintf(
|
||||
"Driver '%s' does not exist, falling back to default driver.",
|
||||
"Driver '%s' does not exist.",
|
||||
$driver
|
||||
));
|
||||
}
|
||||
|
||||
if (!\is_subclass_of($driver, Driver::class)) {
|
||||
throw new \Error(\sprintf(
|
||||
"Driver '%s' is not a subclass of '%s', falling back to default driver.",
|
||||
"Driver '%s' is not a subclass of '%s'.",
|
||||
$driver,
|
||||
Driver::class
|
||||
));
|
||||
|
Loading…
Reference in New Issue
Block a user