Commit f31a42c0 authored by isstuev's avatar isstuev

error handling

parent a481f3bf
......@@ -320,6 +320,7 @@ frontend:
- "/login"
- "/address"
- "/stats"
- "/token"
resources:
limits:
memory:
......
......@@ -6,7 +6,6 @@ import { Element } from 'react-scroll';
import type { RoutedTab } from 'ui/shared/RoutedTabs/types';
import useApiQuery from 'lib/api/useApiQuery';
import DataFetchAlert from 'ui/shared/DataFetchAlert';
import Page from 'ui/shared/Page/Page';
import PageTitle from 'ui/shared/Page/PageTitle';
import RoutedTabs from 'ui/shared/RoutedTabs/RoutedTabs';
......@@ -29,7 +28,7 @@ const TokenPageContent = () => {
];
if (tokenQuery.isError) {
return <DataFetchAlert/>;
throw Error('Token fetch error', { cause: tokenQuery.error as unknown as Error });
}
return (
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment