mirror of
https://github.com/luxfi/explore.git
synced 2026-09-24 00:28:18 +00:00
* navigation doesn't work on error pages Fixes #1518 * unify API resource thrown errors and disable Sentry logging for them * test fix
6 lines
168 B
TypeScript
6 lines
168 B
TypeScript
export default function throwOnAbsentParamError(param: unknown) {
|
|
if (!param) {
|
|
throw new Error('Required param not provided', { cause: { status: 404 } });
|
|
}
|
|
}
|