Skip to content

Commit 01a99d5

Browse files
committed
Brand wip
1 parent 1a28e73 commit 01a99d5

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/Console/Traits/Link.php

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

33
namespace Moox\Devlink\Console\Traits;
44

5+
use RuntimeException;
6+
use Exception;
57
use function Laravel\Prompts\info;
68
use function Laravel\Prompts\note;
79

@@ -73,11 +75,11 @@ private function createSymlinks(): void
7375
exec('mklink /J '.escapeshellarg($link).' '.escapeshellarg($target));
7476
} else {
7577
if (! symlink($target, $link)) {
76-
throw new \RuntimeException('Failed to create symlink');
78+
throw new RuntimeException('Failed to create symlink');
7779
}
7880
}
7981
$linkedPackages[] = "$name$target";
80-
} catch (\Exception $e) {
82+
} catch (Exception $e) {
8183
$failedPackages[] = "$name ({$e->getMessage()})";
8284
}
8385
} else {

0 commit comments

Comments
 (0)