Skip to content

Commit 0434983

Browse files
authored
Update error message when instantiating a non-existing operator (#1090)
* Update doc for instantiating operator * enhance
1 parent 5a3bd9b commit 0434983

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/ansys/dpf/core/dpf_operator.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,8 @@ def __init__(self, name, config=None, server=None):
120120
raise KeyError(
121121
f"The operator {self.name} doesn't exist in the registry. "
122122
f"Check its spelling in the documentation or verify its availability "
123-
f"in your Context (Entry/Premium) and in your loaded plugins."
123+
f"in your loaded plugins. The current available operator names can be "
124+
f"accessed using 'available_operator_names' method."
124125
)
125126

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

0 commit comments

Comments
 (0)