Skip to content

Commit 07b7c57

Browse files
authored
Merge pull request #1127 from cloudbees-oss/subset-error-handling
[chore] report an error in subset call
2 parents c1305fd + 4c867ec commit 07b7c57

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

launchable/commands/subset.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -560,6 +560,7 @@ def request_subset(self) -> SubsetResult:
560560
# The status code 422 is returned when validation error of the test mapping file occurs.
561561
if res.status_code == 422:
562562
print_error_and_die("Error: {}".format(res.reason), Tracking.ErrorEvent.USER_ERROR)
563+
res.raise_for_status()
563564

564565
return SubsetResult.from_response(res.json())
565566
except Exception as e:

0 commit comments

Comments
 (0)