IntersectMBO / IntersectMBO/plutus

`uplc convert` command sometimes generates an empty file on failure.

Open
#7,424 1 comment 0 reactions 1 assignee Claimed by @basetunnel View on GitHub
bug Low priority status: triaged User experience
Dominant language
Haskell
Stars
1.6k
Forks
508
Avg merge
3d 10h
Merged PRs (30d)
22

Description

### 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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.