Skip to content

Commit 2d58a66

Browse files
committed
refactor error message when iop is not initialized
1 parent 7bffd5f commit 2d58a66

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/iop/_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def register_component(module:str,classname:str,path:str,overwrite:int=1,iris_cl
5353
iris.cls('IOP.Utils').dispatchRegisterComponent(module,classname,path,overwrite,iris_classname)
5454
except RuntimeError as e:
5555
# New message error : Make sure the iop package is installed in iris
56-
raise RuntimeError("Make sure the iop package is installed in iris eg: iop --init.") from e
56+
raise RuntimeError("Iris class : IOP.Utils not found. Make sure the iop package is installed in iris eg: iop --init.") from e
5757

5858
@staticmethod
5959
def register_folder(path:str,overwrite:int=1,iris_package_name:str='Python'):

0 commit comments

Comments
 (0)