mirror of
https://github.com/deployphp/deployer.git
synced 2025-02-24 09:12:51 +01:00
Explicitly use global namespace for RuntimeException
This commit is contained in:
parent
3ff9387559
commit
7ecee77c9e
@ -106,7 +106,7 @@ task('deploy:prepare', function () {
|
||||
// Check for existing /current directory (not symlink)
|
||||
$result = run('if [ ! -L {{deploy_path}}/current ] && [ -d {{deploy_path}}/current ]; then echo true; fi')->toBool();
|
||||
if ($result) {
|
||||
throw new RuntimeException('There already is a directory (not symlink) named "current" in ' . env('deploy_path') . '. Remove this directory so it can be replaced with a symlink for atomic deployments.');
|
||||
throw new \RuntimeException('There already is a directory (not symlink) named "current" in ' . env('deploy_path') . '. Remove this directory so it can be replaced with a symlink for atomic deployments.');
|
||||
}
|
||||
|
||||
// Create releases dir.
|
||||
|
Loading…
x
Reference in New Issue
Block a user