diff --git a/mpcdf_common.py b/mpcdf_common.py index 20f2b676aedb3bdd310cc6209bc2e44e434ce737..f7cbf863e6068e0c781d5aab32eeacd9bfa89745 100644 --- a/mpcdf_common.py +++ b/mpcdf_common.py @@ -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)