Skip to content

Commit c452033

Browse files
committed
Make generator not found errors not reportable
1 parent 37d90ec commit c452033

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/app/pages/Generator.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
import { getCurrentUrl, route } from 'preact-router'
22
import { useMemo } from 'preact/hooks'
3-
import config from '../Config.js'
4-
import { getGenerator } from '../Utils.js'
53
import { SchemaGenerator } from '../components/generator/SchemaGenerator.jsx'
64
import { ErrorPanel, Octicon } from '../components/index.js'
5+
import config from '../Config.js'
76
import { useLocale, useTitle, useVersion } from '../contexts/index.js'
87
import type { VersionId } from '../services/index.js'
98
import { checkVersion } from '../services/index.js'
9+
import { getGenerator } from '../Utils.js'
1010

1111
export const SHARE_KEY = 'share'
1212

@@ -19,7 +19,7 @@ export function Generator({}: Props) {
1919

2020
const gen = getGenerator(getCurrentUrl())
2121
if (!gen) {
22-
return <main><ErrorPanel error={locale('generator.not_found', getCurrentUrl())} /></main>
22+
return <main><ErrorPanel error={locale('generator.not_found', getCurrentUrl())} reportable={false} /></main>
2323
}
2424

2525
const allowedVersions = useMemo(() => {

0 commit comments

Comments
 (0)