MCPcopy Create free account
hub / github.com/git-bug/git-bug / Error

Function Error

webui/src/pages/list/ListQuery.tsx:170–184  ·  view source on GitHub ↗
({ error }: ErrorProps)

Source from the content-addressed store, hash-verified

168
169type ErrorProps = { error: ApolloError };
170const Error: React.FC<ErrorProps> = ({ error }: ErrorProps) => {
171 const classes = useStyles({});
172 return (
173 <div className={[classes.errorBox, classes.message].join(' ')}>
174 <ErrorOutline fontSize="large" />
175 <p>There was an error while fetching bug.</p>
176 <p>
177 <em>{error.message}</em>
178 </p>
179 <pre>
180 <code>{JSON.stringify(error, null, 2)}</code>
181 </pre>
182 </div>
183 );
184};
185
186function ListQuery() {
187 const location = useLocation();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected