Skip to content

Commit f23dbbd

Browse files
Normalise exception
1 parent abe085c commit f23dbbd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Illuminate/Foundation/Console/StorageLinkCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
namespace Illuminate\Foundation\Console;
44

5-
use Exception;
65
use Illuminate\Console\Command;
6+
use RuntimeException;
77
use Symfony\Component\Filesystem\Filesystem as SymfonyFilesystem;
88

99
class StorageLinkCommand extends Command
@@ -67,7 +67,7 @@ protected function links()
6767
protected function getRelativeTarget($link, $target)
6868
{
6969
if (! class_exists(SymfonyFilesystem::class)) {
70-
throw new Exception('Please install the symfony/filesystem Composer package to create relative links.');
70+
throw new RuntimeException('To enable support for relative links, please install symfony/filesystem.');
7171
}
7272

7373
return (new SymfonyFilesystem)->makePathRelative($target, dirname($link));

0 commit comments

Comments
 (0)