Skip to content

Commit

Permalink
Use "getInitialWorkingDirectory" instead of "getWorkingDirectory"
Browse files Browse the repository at this point in the history
Follow-up 8d24b61
  • Loading branch information
websi authored and Seldaek committed May 19, 2020
1 parent 42fc372 commit 541692b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Composer/Command/ExecCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
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);
}
}

Expand Down

0 comments on commit 541692b

Please sign in to comment.