Explicitly use global namespace for RuntimeException

This commit is contained in:
Vic D'Elfant 2016-03-20 15:10:13 +01:00
parent 3ff9387559
commit 7ecee77c9e

View File

@ -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.