From a8a05a2e23770615a5ad96ff1cb33c373f306928 Mon Sep 17 00:00:00 2001 From: Neels Hofmeyr Date: Tue, 6 Jun 2017 19:47:40 +0200 Subject: error log: clarify for reserving more resources than available When trying to reserve more resources than available in the resources.conf, actually print an intelligible error message: catch the nameless error from solve() and fill in what was requested for solution. Change-Id: Iba3707f1aaeb40a58c616c33af52a60c9a2e7e1f --- selftest/resource_test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'selftest') diff --git a/selftest/resource_test.py b/selftest/resource_test.py index 08f1fbf..c78485e 100755 --- a/selftest/resource_test.py +++ b/selftest/resource_test.py @@ -39,7 +39,7 @@ try: [2], [0, 2] ]) assert False -except resource.NoResourceExn as e: +except resource.NotSolvable as e: print(e) print('- test removing a Resources list from itself') -- cgit v1.2.3