Improve error message for empty config file
commit2e70b9721f1172aff6634d5796fd5e565c4ed158
authorBodigrim <andrew.lelechenko@gmail.com>
Mon, 4 Sep 2023 20:34:26 +0000 (4 21:34 +0100)
committerMikolaj <281893+Mikolaj@users.noreply.github.com>
Wed, 6 Sep 2023 21:47:19 +0000 (6 21:47 +0000)
treefb0295be49770e8059460f06ff74cae2d15da9d3
parent00bbb66c4461e8d5ab60b1892af2971a5a680bac
Improve error message for empty config file

Otherwise

```
$ CONFIG_FILE= cabal build
Error: cabal-3.10.1.0: Config file not found:
```

looks abrupt and confusing. Now it says

```
Error: cabal: Config file name is empty
```
cabal-install/src/Distribution/Client/Config.hs