Skip to content

Commit 7bf4675

Browse files
committed
Aggregate signing failures
1 parent 3384a3c commit 7bf4675

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

e2e/artillery/src/processors/multi-endpoints.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,15 @@ export async function runPkpSignTest() {
166166
);
167167

168168
// Throw the error to let Artillery handle it
169-
throw error;
169+
// Handle specific errors to aggregate them
170+
if (
171+
error instanceof Error &&
172+
error.message.includes('unable to get signature share')
173+
) {
174+
throw new Error('"PKP Sign" failed. unable to get signature share.');
175+
} else {
176+
throw error;
177+
}
170178
}
171179
}
172180

0 commit comments

Comments
 (0)