Skip to content

Commit 131f1b8

Browse files
committed
Add exception instance to display()
1 parent 2baa5be commit 131f1b8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Assets.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public function __construct($config = null)
6363
public function display(string $extension)
6464
{
6565
if (! in_array($extension, ['css', 'js']))
66-
return false;
66+
throw AssetsException::forUnsupportedExtension($extension);
6767

6868
// buffer all matched files as tags
6969
$buffer = "<!-- Local ".strtoupper($extension)." files -->".PHP_EOL;

0 commit comments

Comments
 (0)