rs-station / matchmaps

https://rs-station.github.io/matchmaps/
Other
2 stars 0 forks source link

Helpful error detection from sub-processes #58

Closed dennisbrookner closed 1 month ago

dennisbrookner commented 1 month ago

Currently, the program behavior when a subprocess (CCP4 or phenix process called from the command line) fails is very unhelpful. If verbose mode is off, the subprocess will fail silently. The main program will then error out with a FileNotFoundError that is not necessarily informative to a user. If verbose mode is on, the subprocess error message will be printed, but the latest error presented will still be the unhelpful FileNotFoundError.

This PR wraps all calls to subprocess.run() in a helper function which