catches elevation correction errors

This commit is contained in:
Christian Beutel
2025-04-28 17:02:55 +02:00
parent 7ef45669d0
commit ed6a070810

View File

@@ -23,7 +23,11 @@ export async function gpx2trail(gpxString: string, fallbackName?: string, f: (ur
if (gpx instanceof Error) {
throw gpx;
}
try {
await gpx.correctElevation(f)
} catch(e) {
console.warn("Unable to correct elevation: " + e)
}
const trail = new Trail("");