From a85286e3b28e69dded4f977e454c6ddb8e237015 Mon Sep 17 00:00:00 2001 From: Doug Hellmann Date: Mon, 22 Jun 2015 19:22:14 +0000 Subject: [PATCH] Report bad package when found When a non-standard package is found in the requirements list, we had an error saying that but not saying what the bad package name was. Change-Id: I860c548dce0c8f988f8fd29cead582bf9b9b6850 --- openstack_requirements/update.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/openstack_requirements/update.py b/openstack_requirements/update.py index 0078dbb7f2..48c95e245e 100644 --- a/openstack_requirements/update.py +++ b/openstack_requirements/update.py @@ -252,7 +252,8 @@ def _sync_requirements_file( actions.append(StdOut( "'%s' is not in global-requirements.txt\n" % req.package)) if not non_std_reqs: - raise Exception("nonstandard requirement present.") + raise Exception("nonstandard requirement present: %s" % + req.package) # always print out what we did if we did a thing if changes: actions.append(StdOut(