M rework/api.py +1 -1
@@ 162,7 162,7 @@ def schedule(engine,
domain=domain,
metadata=metadata
)
- raise ValueError('Ambiguous operation selection')
+ raise ValueError(f'Ambiguous operation selection `{opname}`')
if not len(opids):
raise Exception(
f'No operation was found for these parameters: '
M rework/helper.py +1 -1
@@ 392,7 392,7 @@ def filterio(specs, operation, domain=No
return None
if len(out) > 1:
- raise ValueError('Ambiguous operation selection')
+ raise ValueError(f'Ambiguous operation selection `{operation}`')
return out[0]
M tests/test_api.py +1 -1
@@ 498,7 498,7 @@ def test_schedule_domain(engine, cleanup
with pytest.raises(ValueError) as err:
api.schedule(engine, 'foo')
- assert err.value.args[0] == 'Ambiguous operation selection'
+ assert err.value.args[0] == 'Ambiguous operation selection `foo`'
api.schedule(engine, 'foo', domain='test')