improved error message to debug a problem that only happens in ci (can't reproduce even when logged as jenkins-agent)

The error message is:
> ValueError: failed to find compilers/ifort/latest amongst available environment modules

work related to [https://bugzilla.ipr.univ-rennes.fr/show_bug.cgi?id=3958]
This commit is contained in:
Guillaume Raffy 2024-11-26 15:04:02 +01:00
parent d1aba97073
commit 95cb65ef35
1 changed files with 1 additions and 1 deletions

View File

@ -172,7 +172,7 @@ class IprClusterNode(DebianHost):
available_modules = get_available_modules()
shortcut_env_module = EnvModule(f'{package_env_module}/latest')
if shortcut_env_module not in available_modules:
raise ValueError(f'failed to find {shortcut_env_module} amongst available environment modules')
raise ValueError(f'failed to find {shortcut_env_module} amongst available environment modules ({available_modules})')
# logging.debug('available_modules = %s', available_modules)
shortcut_file_path = get_module_file_path(shortcut_env_module)
# logging.debug('shortcut_file_path = %s', shortcut_file_path)