mirror of
https://github.com/morluto/rea.git
synced 2026-11-07 07:16:13 +00:00
fix(browser): preserve caller cancellation through CDP observations
This commit is contained in:
1 parent
9aca543f46
commit
7f4e7d5577
15 files changed
+678
-48
No files matched your search
@@ -187,7 +187,9 @@ const parseInput = <T>(
|
||||
options: ExecutionOptions | undefined,
|
||||
): Result<T, AnalysisError> => {
|
||||
if (options?.signal?.aborted)
|
||||
return err(new AnalysisCancelledError(operation));
|
||||
return err(
|
||||
new AnalysisCancelledError(operation, { cause: options.signal.reason }),
|
||||
);
|
||||
const parsed = schema.safeParse(rawInput);
|
||||
return parsed.success
|
||||
? ok(parsed.data)
|
||||
|
||||
Reference in new issue
Block a user