fix: Only show one toast when extensions fail to add/activate/etc (#1963)

This commit is contained in:
Alex Hancock
2025-04-01 10:31:10 -04:00
committed by GitHub
parent 6c2d94e259
commit 22c968d20f

View File

@@ -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);
}