We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1a28e73 commit 01a99d5Copy full SHA for 01a99d5
src/Console/Traits/Link.php
@@ -2,6 +2,8 @@
2
3
namespace Moox\Devlink\Console\Traits;
4
5
+use RuntimeException;
6
+use Exception;
7
use function Laravel\Prompts\info;
8
use function Laravel\Prompts\note;
9
@@ -73,11 +75,11 @@ private function createSymlinks(): void
73
75
exec('mklink /J '.escapeshellarg($link).' '.escapeshellarg($target));
74
76
} else {
77
if (! symlink($target, $link)) {
- throw new \RuntimeException('Failed to create symlink');
78
+ throw new RuntimeException('Failed to create symlink');
79
}
80
81
$linkedPackages[] = "$name → $target";
- } catch (\Exception $e) {
82
+ } catch (Exception $e) {
83
$failedPackages[] = "$name ({$e->getMessage()})";
84
85
0 commit comments