Skip to content

Commit

Permalink
Merge pull request #57 from sitegeist/feature/improveErrorForWrongSsh…
Browse files Browse the repository at this point in the history
…Configurations

TASK: Improve error message when remote configuration could not be read
  • Loading branch information
mficzel authored May 30, 2023
2 parents 4d3d387 + 17662ee commit 4a85821
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Classes/Command/CloneCommandController.php
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,9 @@ protected function cloneRemoteHost(

if ($remotePersistenceConfigurationYaml) {
$remotePersistenceConfiguration = Yaml::parse($remotePersistenceConfigurationYaml);
} else {
$this->renderLine("<error>The remote configuration for %s@%s could not be read. Please check the configuration and ensure the correct ssh key was added.</error>", [$user, $host]);
$this->quit(1);
}
$remoteDataPersistentPath = $path . '/Data/Persistent';

Expand Down

0 comments on commit 4a85821

Please sign in to comment.