From 57788b12f510d0b30b0a7194d2dff98fa66b9ef0 Mon Sep 17 00:00:00 2001 From: Peter Johnson Date: Tue, 24 Sep 2024 14:56:37 +0200 Subject: [PATCH] Improved error message --- src/store/store.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/store/store.ts b/src/store/store.ts index c532965..cce49d6 100644 --- a/src/store/store.ts +++ b/src/store/store.ts @@ -125,7 +125,7 @@ export class GeoJSONStore { // does not throw something more specific itself if (!isValid) { throw new Error( - `Feature is not ${id} valid: ${JSON.stringify(feature)}`, + `Feature ${id} is not valid: ${JSON.stringify(feature)}`, ); } }