We might as well use a decorator to raise StratisCliEngineError at end of method
Closed this issue · 1 comments
mulkieran commented
We could do this for all methods that actually invoke an engine method. Such methods will either raise an exception or they will return the result of the engine method call. We could modify these methods to return the triple returned by the engine call. Then the decorator can do its further processing.
This would be more programmatic and a little less boiler-platey, so it would be more obvious that such methods were doing the correct thing.