diff --git a/src/Composer/Command/ExecCommand.php b/src/Composer/Command/ExecCommand.php index d530def66..fba9e7e8a 100644 --- a/src/Composer/Command/ExecCommand.php +++ b/src/Composer/Command/ExecCommand.php @@ -99,7 +99,7 @@ EOT try { chdir($this->getApplication()->getInitialWorkingDirectory()); } catch (\Exception $e) { - throw new \RuntimeException('Could not switch back to working directory "'.$this->getApplication()->getWorkingDirectory().'"', 0, $e); + throw new \RuntimeException('Could not switch back to working directory "'.$this->getApplication()->getInitialWorkingDirectory().'"', 0, $e); } }