mirror of
https://github.com/aljazceru/goose.git
synced 2026-01-09 09:24:27 +01:00
fix: Only show one toast when extensions fail to add/activate/etc (#1963)
This commit is contained in:
@@ -58,11 +58,7 @@ export async function extensionApiCall(
|
||||
if (data.error) {
|
||||
const errorMessage = `Error ${action.type} extension: ${data.message || 'Unknown error'}`;
|
||||
toastService.dismiss(toastId);
|
||||
toastService.error({
|
||||
title: extensionName,
|
||||
msg: errorMessage,
|
||||
traceback: data.message || 'Unknown error',
|
||||
});
|
||||
// Rely on the global error catch to show the copyable error toast here
|
||||
throw new Error(errorMessage);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user