From 4eab292e1b5296c04cf3d51a0b7257f107e164f1 Mon Sep 17 00:00:00 2001 From: tsuki Date: Tue, 19 Aug 2025 12:23:02 +0800 Subject: [PATCH] fix type error --- components/map-component.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/map-component.tsx b/components/map-component.tsx index ef0dc1c..becd3c0 100644 --- a/components/map-component.tsx +++ b/components/map-component.tsx @@ -136,7 +136,7 @@ export function MapComponent({ gl.compileShader(shader); if (!gl.getShaderParameter(shader, gl.COMPILE_STATUS)) { - const errorLog = gl.getShaderInfoLog(shader); + const errorLog = gl.getShaderInfoLog(shader) || 'Unknown shader compilation error'; const error = new Error(`Shader compilation failed: ${errorLog}`); Sentry.captureException(error, { tags: { component: 'MapComponent', operation: 'shader_compilation' }, @@ -164,7 +164,7 @@ export function MapComponent({ gl.linkProgram(program); if (!gl.getProgramParameter(program, gl.LINK_STATUS)) { - const errorLog = gl.getProgramInfoLog(program); + const errorLog = gl.getProgramInfoLog(program) || 'Unknown program linking error'; const error = new Error(`WebGL program linking failed: ${errorLog}`); Sentry.captureException(error, { tags: { component: 'MapComponent', operation: 'program_linking' },