Skip to content

Commit

Permalink
Update error message when instantiating a non-existing operator (#1090)
Browse files Browse the repository at this point in the history
* Update doc for instantiating operator

* enhance
  • Loading branch information
anslpa committed Aug 2, 2023
1 parent 5a3bd9b commit 0434983
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ansys/dpf/core/dpf_operator.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,8 @@ def __init__(self, name, config=None, server=None):
raise KeyError(
f"The operator {self.name} doesn't exist in the registry. "
f"Check its spelling in the documentation or verify its availability "
f"in your Context (Entry/Premium) and in your loaded plugins."
f"in your loaded plugins. The current available operator names can be "
f"accessed using 'available_operator_names' method."
)

self._spec = Specification(operator_name=self.name, server=self._server)
Expand Down

0 comments on commit 0434983

Please sign in to comment.