Skip to content

Commit b0321c5

Browse files
committed
log error
1 parent d4f2ba1 commit b0321c5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/nextjs/src/client/routing/parameterization.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import { GLOBAL_OBJ } from '@sentry/core';
1+
import { GLOBAL_OBJ, logger } from '@sentry/core';
2+
import { DEBUG_BUILD } from '../../common/debug-build';
23
import type { RouteManifest } from '../../config/manifest/types';
34

45
const globalWithInjectedManifest = GLOBAL_OBJ as typeof GLOBAL_OBJ & {
@@ -59,6 +60,7 @@ export const maybeParameterizeRoute = (route: string): string | undefined => {
5960
return undefined;
6061
}
6162
} catch (error) {
63+
DEBUG_BUILD && logger.warn('Could not extract route manifest');
6264
// Something went wrong while parsing the manifest, so we'll fallback to no parameterization
6365
return undefined;
6466
}

0 commit comments

Comments
 (0)