aboutsummaryrefslogtreecommitdiffstats
path: root/selftest
diff options
context:
space:
mode:
authorNeels Hofmeyr <nhofmeyr@sysmocom.de>2017-06-06 19:47:40 +0200
committerNeels Hofmeyr <nhofmeyr@sysmocom.de>2017-06-07 19:53:28 +0200
commita8a05a2e23770615a5ad96ff1cb33c373f306928 (patch)
tree502fd20f36bb1f0f0fe2d53a067daaccc6c22d46 /selftest
parent31e83200b21ab0c09112cb2815438e6259f1c874 (diff)
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
Diffstat (limited to 'selftest')
-rwxr-xr-xselftest/resource_test.py2
1 files changed, 1 insertions, 1 deletions
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')