Goose recover (#5450)

Co-authored-by: Douwe Osinga <douwe@squareup.com>
This commit is contained in:
Douwe Osinga
2025-10-30 18:12:46 -04:00
committed by GitHub
parent 6ea0594fb4
commit 4201e80e8e
8 changed files with 95 additions and 78 deletions
@@ -32,11 +32,17 @@ export async function addToAgent(
toastService.dismiss(toastId);
}
const errMsg = errorMessage(error);
const recoverHints =
`Explain the following error: ${errMsg}. ` +
'This happened while trying to install an extension. Look out for issues that the ' +
"extension tried to run something faulty, didn't exist or there was trouble with " +
'the network configuration - VPNs like WARP often cause issues.';
const msg = errMsg.length < 70 ? errMsg : `Failed to add extension`;
toastService.error({
title: extensionName,
msg: msg,
traceback: errMsg,
recoverHints,
});
throw error;
}