Summary
uplc convert command sometimes generates an empty file on failure, instead of not generating anything.
Steps to reproduce the behavior
in this repository:
cabal run uplc -- convert -i plutus-conformance/test-cases/uplc/evaluation/builtin/constant/bls12-381/G1/on-curve-bit3-clear/on-curve-bit3-clear.uplc -o bug-reproduction.flat --of flat
Actual Result
an empty bug-reproduction.flat file is generated.
Expected Result
No file should be generated.
Describe the approach you would take to fix this
Make the command consistent by never generating any files on failure.
System info
N/A