File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 11@setup
2- $baseCwd = isset($__current_cwd) ? $__current_cwd : getcwd();
3- $configFile = $baseCwd.'/app/config/deploy.php';
2+ $baseCwd = isset($__current_cwd) ? $__current_cwd : getcwd();
3+ $configFile = $baseCwd .'/'. (isset($configFile) ? $configFile : ' app/config/deploy.php') ;
44
55 if ( ! file_exists($configFile)) {
6- throw new Exception('Config file app/config/deploy.php not found.');
6+ throw new Exception('Config file '. $configFile .' not found.');
77 }
88
99 $deployConfig = include($configFile);
282282@error
283283 if ($task === 'deploy:check') {
284284 throw new Exception('Unmet prerequisites to deploy. Have you run deploy:setup?');
285+ } else {
286+ throw new Exception('Whoops, looks like something went wrong');
285287 }
286288@enderror
287289
You can’t perform that action at this time.
0 commit comments