Skip to content

Commit

Permalink
TASK: Improve error message when remote configuration could not be read
Browse files Browse the repository at this point in the history
  • Loading branch information
mficzel committed May 30, 2023
1 parent 4d3d387 commit 17662ee
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 17662ee

Please sign in to comment.