Skip to content

Commit dace69d

Browse files
committed
Improve module_wrapper_exists deprecation error
1 parent 1454dd3 commit dace69d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

easybuild/tools/modules.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -489,7 +489,8 @@ def module_wrapper_exists(self, mod_name, modulerc_fn='.modulerc', mod_wrapper_r
489489
Only .modulerc file in Tcl syntax is considered here.
490490
DEPRECATED. Use exists()
491491
"""
492-
self.log.deprecated('module_wrapper_exists is unreliable and should no longer be used', '5.0')
492+
self.log.deprecated('module_wrapper_exists is unreliable and should no longer be used. ' +
493+
'Use exists instead to check for an existing module or alias.', '5.0')
493494

494495
if mod_wrapper_regex_template is None:
495496
mod_wrapper_regex_template = "^[ ]*module-version (?P<wrapped_mod>[^ ]*) %s$"

0 commit comments

Comments
 (0)