Skip to content

Commit

Permalink
Report missing repository config in update-code task (#3996) (#3997)
Browse files Browse the repository at this point in the history
  • Loading branch information
staabm authored Jan 10, 2025
1 parent 2f6c341 commit 16cb357
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions recipe/deploy/update_code.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,10 @@
$repository = get('repository');
$target = get('target');

if (empty($repository)) {
throw new ConfigurationException("Missing 'repository' configuration.");
}

$targetWithDir = $target;
if (!empty(get('sub_directory'))) {
$targetWithDir .= ':{{sub_directory}}';
Expand Down

0 comments on commit 16cb357

Please sign in to comment.