mirror of
https://github.com/enricoros/big-AGI.git
synced 2026-05-10 21:50:14 -07:00
Server-side fetchers: note the abort path
This commit is contained in:
@@ -87,6 +87,9 @@ async function _fetchFromTRPC<TBody extends object | undefined | FormData, TOut>
|
||||
|
||||
} catch (error: any) {
|
||||
|
||||
// NOTE: if signal?.aborted is true, we also come here, likely with a error?.name = ResponseAborted
|
||||
// since we don't handle this case specially, the same TRPCError will be thrown as for other connection errors.
|
||||
|
||||
// [logging - Connection error] candidate for the logging system
|
||||
const errorCause: object | undefined = error ? error?.cause ?? undefined : undefined;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user