Skip to content

Commit

Permalink
FIX: Output workspace name in WorkspaceCommand actions
Browse files Browse the repository at this point in the history
  • Loading branch information
c4ll-m3-j4ck authored Jul 9, 2024
1 parent 78bdd81 commit d273362
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Neos.Neos/Classes/Command/WorkspaceCommandController.php
Original file line number Diff line number Diff line change
Expand Up @@ -127,10 +127,10 @@ public function rebaseCommand(string $workspace, string $contentRepository = 'de
);
$workspace->rebase($force ? RebaseErrorHandlingStrategy::STRATEGY_FORCE : RebaseErrorHandlingStrategy::STRATEGY_FAIL);
} catch (WorkspaceDoesNotExist $exception) {
$this->outputLine('Workspace "%s" does not exist', [$workspace]);
$this->outputLine('Workspace "%s" does not exist', [$workspace->name->value]);

Check failure on line 130 in Neos.Neos/Classes/Command/WorkspaceCommandController.php

View workflow job for this annotation

GitHub Actions / PHP 8.2 Test linting-unit-functionaltests-mysql (deps: highest)

Cannot access property $name on string.

Check failure on line 130 in Neos.Neos/Classes/Command/WorkspaceCommandController.php

View workflow job for this annotation

GitHub Actions / PHP 8.3 Test linting-unit-functionaltests-mysql (deps: highest)

Cannot access property $name on string.
$this->quit(1);
} catch (WorkspaceRebaseFailed $exception) {
$this->outputLine('Rebasing of workspace %s is not possible due to conflicts. You can try the --force option.', [$workspace]);
$this->outputLine('Rebasing of workspace %s is not possible due to conflicts. You can try the --force option.', [$workspace->name->value]);
$this->quit(1);
}

Expand Down

0 comments on commit d273362

Please sign in to comment.