From c76049a4c516c9c2f8ae9c1ff0c796bcd9c2548a Mon Sep 17 00:00:00 2001 From: Peter Johnson Date: Wed, 25 Sep 2024 21:31:48 +0200 Subject: [PATCH] fix: improved error message for store feature validation --- 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)}`, ); } }