mirror of
https://github.com/wintercms/winter.git
synced 2024-06-28 05:33:29 +02:00
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 <github@luketowers.ca>
This commit is contained in:
parent
3fbc50f06a
commit
ac130c462c
@ -45,7 +45,7 @@ class MixWatch extends MixCompile
|
||||
$relativeMixJsPath = $package['mix'];
|
||||
if (!$this->canCompilePackage($relativeMixJsPath)) {
|
||||
$this->error(
|
||||
sprintf('Unable to watch "%s", %s was not found in the package.json\'s workspaces.packages property. Try running mix:install first.', $name, $packagePath)
|
||||
sprintf('Unable to watch "%s", %s was not found in the package.json\'s workspaces.packages property. Try running mix:install first.', $name, $relativeMixJsPath)
|
||||
);
|
||||
return 1;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user