feat(core): increase fetch timeout and fix [object Object] error stringification (#20441)

Co-authored-by: Gal Zahavi <38544478+galz10@users.noreply.github.com>
This commit is contained in:
Bryan Morgan
2026-02-26 18:41:09 -05:00
committed by GitHub
parent b8d6041d42
commit 6dc9d5ff11
4 changed files with 100 additions and 24 deletions

View File

@@ -29,6 +29,15 @@ export function getErrorMessage(error: unknown): string {
if (friendlyError instanceof Error) {
return friendlyError.message;
}
if (
typeof friendlyError === 'object' &&
friendlyError !== null &&
'message' in friendlyError &&
typeof (friendlyError as { message: unknown }).message === 'string'
) {
// eslint-disable-next-line @typescript-eslint/no-unsafe-type-assertion
return (friendlyError as { message: string }).message;
}
try {
return String(friendlyError);
} catch {