Skip to content

Commit

Permalink
Increased verbosity for Value Error raised if backend not installed (p…
Browse files Browse the repository at this point in the history
  • Loading branch information
jbusecke authored Jul 31, 2024
1 parent 2df31b7 commit f15082c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions xarray/backends/plugins.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,9 @@ def get_backend(engine: str | type[BackendEntrypoint]) -> BackendEntrypoint:
if engine not in engines:
raise ValueError(
f"unrecognized engine {engine} must be one of: {list(engines)}"
"To install additional dependencies, see:\n"
"https://docs.xarray.dev/en/stable/user-guide/io.html \n"
"https://docs.xarray.dev/en/stable/getting-started-guide/installing.html"
)
backend = engines[engine]
elif isinstance(engine, type) and issubclass(engine, BackendEntrypoint):
Expand Down

0 comments on commit f15082c

Please sign in to comment.