Skip to content

Commit e1ab26f

Browse files
committed
added a more specialized exception for a better error message
1 parent ad1dd8e commit e1ab26f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

RouteCollectionBuilder.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -369,11 +369,11 @@ private function load($resource, $type = null)
369369
}
370370

371371
if (null === $resolver = $this->loader->getResolver()) {
372-
throw new FileLoaderLoadException($resource);
372+
throw new FileLoaderLoadException($resource, null, null, null, $type);
373373
}
374374

375375
if (false === $loader = $resolver->resolve($resource, $type)) {
376-
throw new FileLoaderLoadException($resource);
376+
throw new FileLoaderLoadException($resource, null, null, null, $type);
377377
}
378378

379379
$collections = $loader->load($resource, $type);

0 commit comments

Comments
 (0)