Skip to content
Snippets Groups Projects
Commit 7832f271 authored by Lorenz Huedepohl's avatar Lorenz Huedepohl
Browse files

Better error messages for missing attributes

parent b15339ab
No related branches found
No related tags found
No related merge requests found
Pipeline #67037 passed
......@@ -190,7 +190,9 @@ def mpcdf_enable_repositories(api_url, project, package, verbose=False, filter_r
try:
return get_attribute_values(api_url, project, package, "MPCDF:" + attribute, with_project=with_project)
except UnsetAttributeException:
print("ERROR: Attribute MPCDF:" + attribute + " is not set, aborting here", file=sys.stderr)
print("ERROR: Attribute MPCDF:" + attribute + " is not set for "
+ ("package '{0}'".format(package) if package else "project '{0}'".format(project))
+ ", aborting here", file=sys.stderr)
raise SystemExit(1)
compilers = try_get_attribute(package, "compiler_modules", with_project=True)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment