Skip to content

Commit a989d22

Browse files
committed
test
1 parent f5a90ff commit a989d22

File tree

4 files changed

+23
-4
lines changed

4 files changed

+23
-4
lines changed

.github/workflows/e2e.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ jobs:
133133
ARGOS_TOKEN: ${{ secrets.ARGOS_TOKEN }}
134134
ARGOS_PARALLEL: true
135135
ARGOS_PARALLEL_TOTAL: ${{ strategy.job-total }}
136-
ARGOS_PARALLEL_INDEX: ${{ matrix.containers }}
136+
ARGOS_PARALLEL_INDEX: ${{ strategy.job-index }}
137137
SPLIT: ${{ strategy.job-total }}
138138
SPLIT_INDEX: ${{ strategy.job-index }}
139139
SPLIT_FILE: 'cypress/timings.json'

package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,8 @@
136136
"pnpm": {
137137
"patchedDependencies": {
138138
"roughjs": "patches/roughjs.patch",
139-
"@argos-ci/core": "patches/@argos-ci__core.patch"
139+
"@argos-ci/core": "patches/@argos-ci__core.patch",
140+
"@argos-ci/api-client": "patches/@argos-ci__api-client.patch"
140141
}
141142
}
142143
}

patches/@argos-ci__api-client.patch

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
diff --git a/dist/index.mjs b/dist/index.mjs
2+
index 121ed29385ceca37f7cb6b7188709d7ec506dfa6..41092962ccde5177a261b816cffb55f6a1615d6e 100644
3+
--- a/dist/index.mjs
4+
+++ b/dist/index.mjs
5+
@@ -25,6 +25,10 @@ class APIError extends Error {
6+
*/ function throwAPIError(fetchResponse) {
7+
const { error, response } = fetchResponse;
8+
if (error && typeof error === "object" && "error" in error && typeof error.error === "string") {
9+
+ const message = error.details?.[0]?.message;
10+
+ if (message) {
11+
+ throw new APIError(`${error.error}: ${message}`);
12+
+ }
13+
throw new APIError(error.error);
14+
}
15+
throw new APIError(`API error: ${response.status} ${response.statusText}`);

pnpm-lock.yaml

+5-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)