Commit 7832f271 authored by Lorenz Huedepohl's avatar Lorenz Huedepohl
Browse files

Better error messages for missing attributes

parent b15339ab
Pipeline #67037 passed with stage
in 14 seconds
......@@ -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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment