Skip to content

uplc convert command sometimes generates an empty file on failure. #7424

@carloskiki

Description

@carloskiki

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions