Skip to content

Commit ac130c4

Browse files
Fix undefined variable $packagePath in mix:watch error (#485)
When the package is not present in package.json, the correct error is not thrown because $packagePath not exists. Co-authored-by: Luke Towers <[email protected]>
1 parent 3fbc50f commit ac130c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/system/console/MixWatch.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public function handle(): int
4545
$relativeMixJsPath = $package['mix'];
4646
if (!$this->canCompilePackage($relativeMixJsPath)) {
4747
$this->error(
48-
sprintf('Unable to watch "%s", %s was not found in the package.json\'s workspaces.packages property. Try running mix:install first.', $name, $packagePath)
48+
sprintf('Unable to watch "%s", %s was not found in the package.json\'s workspaces.packages property. Try running mix:install first.', $name, $relativeMixJsPath)
4949
);
5050
return 1;
5151
}

0 commit comments

Comments
 (0)