Raise an error if base_path is not set