Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion extension/src/helpers/hooks/useGetAppData.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ function useGetAppData() {
dispatch({ type: "FETCH_DATA_ERROR", payload: error });
reduxDispatch(saveAccountError(error));
Sentry.captureException(`Error loading app data: ${error}`);
throw new Error("Failed to fetch app data", { cause: error });
throw new Error(`Failed to fetch app data - ${error}`);
}
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ export function useGetAssetDomainsWithBalances(getBalancesOptions: {
return payload;
} catch (error) {
dispatch({ type: "FETCH_DATA_ERROR", payload: error });
throw new Error("Failed to fetch domains", { cause: error });
throw new Error(`Failed to fetch domains - ${error}`);
}
};

Expand Down
2 changes: 1 addition & 1 deletion extension/src/helpers/hooks/useGetBalances.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ function useGetBalances(options: {
return payload;
} catch (error) {
dispatch({ type: "FETCH_DATA_ERROR", payload: error });
throw new Error("Failed to fetch balances", { cause: error });
throw new Error(`Failed to fetch balances - ${error}`);
}
};

Expand Down
2 changes: 1 addition & 1 deletion extension/src/helpers/hooks/useGetHistory.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ function useGetHistory() {
return data;
} catch (error) {
dispatch({ type: "FETCH_DATA_ERROR", payload: error });
throw new Error("Failed to fetch history", { cause: error });
throw new Error(`Failed to fetch history - ${error}`);
}
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ function useGetSearchData(options: {
return payload;
} catch (error) {
dispatch({ type: "FETCH_DATA_ERROR", payload: error });
throw new Error("Failed to fetch search data", { cause: error });
throw new Error(`Failed to fetch search data - ${error}`);
}
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export function useGetDestAssetData(getBalancesOptions: {
return payload;
} catch (error) {
dispatch({ type: "FETCH_DATA_ERROR", payload: error });
throw new Error("Failed to fetch domains", { cause: error });
throw new Error(`Failed to fetch domains - ${error}`);
}
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ export function useGetSwapFromData(getBalancesOptions: {
return payload;
} catch (error) {
dispatch({ type: "FETCH_DATA_ERROR", payload: error });
throw new Error("Failed to fetch data", { cause: error });
throw new Error(`Failed to fetch data - ${error}`);
}
};

Expand Down