Closed nixxholas closed 2 years ago
Thanks @nixxholas.
I fixed another similar issue (i.e. request_builder) in the cancel_job endpoint.
However, I have reverted the changes to the error handling. I don't see the real advantage of replacing the question mark operator ? with a series of if. This is not idiomatic and most error variants contain the origin of the error which makes it possible to display a backtrace via a crate like color-eyre for debugging purposes.
This PR focuses more on expanding the code flow of get_job. Yes, it makes the code "bloated", but an example below makes it so much easier for a developer to create useful BPs that allow him/her/them to get to the root of the problem.![Screenshot 2021-11-10 at 11 39 06 AM](https://user-images.githubusercontent.com/4703269/141045998-e511ac6f-b1d1-4bdf-b981-d758bd98aeaf.png)