mirror of
https://github.com/facebook/zstd.git
synced 2025-03-07 09:26:03 +02:00
While trying to raise an exception on failures, it instead raised an exception for misusing the exception. CalledProcessError is only supposed to be used when given a return code and a command, and it prints: Command '{cmd}' returned non-zero exit status {ret} Passing an error message string instead, just errored out with: TypeError: __init__() missing 1 required positional argument Instead use the subprocess module's base error which does accept string messages. Everything that used to error out, still errors out, but now they do so with a slightly prettier console message.