From e5077e1677f2d6b2f18b07e8bae3137d54a8efb1 Mon Sep 17 00:00:00 2001 From: KatKatKateryna Date: Mon, 14 Oct 2024 12:34:45 +0100 Subject: [PATCH] better dataType warning --- pygeoapi/provider/speckle_utils/feature_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pygeoapi/provider/speckle_utils/feature_utils.py b/pygeoapi/provider/speckle_utils/feature_utils.py index 79604b0..f1c2f2c 100644 --- a/pygeoapi/provider/speckle_utils/feature_utils.py +++ b/pygeoapi/provider/speckle_utils/feature_utils.py @@ -169,7 +169,7 @@ def initialize_features(self: "SpeckleProvider", all_coords, all_coord_counts, d ######################## if len(data["features"])==0 and len(data["comments"])==0: - raise ValueError("No supported features found") + raise ValueError(f"No supported features found. Make sure correct DataType is requested. Current DataType='{self.requested_data_type}'") time2 = datetime.now()