Skip to content

Commit cdec499

Browse files
authored
Report missing repository config in update-code task (#3996)
1 parent 499af0c commit cdec499

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

recipe/deploy/update_code.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,10 @@
7474
$repository = get('repository');
7575
$target = get('target');
7676

77+
if (empty($repository)) {
78+
throw new ConfigurationException("Missing 'repository' configuration.");
79+
}
80+
7781
$targetWithDir = $target;
7882
if (!empty(get('sub_directory'))) {
7983
$targetWithDir .= ':{{sub_directory}}';

0 commit comments

Comments
 (0)