haskell / haskell/cabal

Unhelpful error if `curl` is not on the path

Open
#9,192 0 comments 2 reactions 0 assignees View on GitHub
re: http-transport type: bug
Dominant language
Haskell
Stars
1.7k
Forks
750
Avg merge
4d 3h
Merged PRs (30d)
28

Description

**Describe the bug**
If `curl` is not on the path and you attempt to access a `https` repository, then you get an uninformative error `user error (https not supported)`.

Might be worth auditing other process calls, I wouldn't be surprised if "program not found" and "program failed" end up getting the same treatment.

**To Reproduce**
Steps to reproduce the behavior:

Check out https://github.com/input-output-hk/plutus and try any cabal operation without `curl` on your path.

**Expected behavior**
An error like `The program 'curl' was not found on the path and is needed for downloading repositories`

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.