haskell / haskell/cabal

Extraneous error codes

Open
#10,623 0 comments 0 reactions 0 assignees View on GitHub
re: error-message type: bug
Dominant language
Haskell
Stars
1.7k
Forks
750
Avg merge
4d 3h
Merged PRs (30d)
28

Description

#9162 added these error codes:

```
+ RunProgramInvocationException{} -> 8012
+ GetProgramInvocationException{} -> 7300
+ GetProgramInvocationLBSException{} -> 6578
```

6578 and 8012 are effectively the same error, simply used in two different functions.

7300 is unused (probably an oversight -- I can see where it *would* go based on the pattern followed by the first two).

Would it make sense to create a new `ProgramInvocationException` and use it everywhere a program invocation fails?

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.