diff --git a/appletree/config.py b/appletree/config.py index f9604182..3d07c853 100644 --- a/appletree/config.py +++ b/appletree/config.py @@ -154,7 +154,10 @@ def build(self, llh_name: str = None): else: self.file_path = file_path - data = load_json(self.file_path) + try: + data = load_json(self.file_path) + except: + raise ValueError(f"Cannot load {self.name} from {self.file_path}!") coordinate_type = data['coordinate_type'] if coordinate_type == 'point' or coordinate_type == 'log_point':