Skip to content

Commit

Permalink
fix: improved error message for store feature validation
Browse files Browse the repository at this point in the history
  • Loading branch information
missinglink authored Sep 25, 2024
1 parent 8436939 commit c76049a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/store/store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ export class GeoJSONStore<Id extends FeatureId = FeatureId> {
// 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)}`,
);
}
}
Expand Down

0 comments on commit c76049a

Please sign in to comment.