Skip to content

Commit 8bc0440

Browse files
Update S-6602 message formatting for Stack RC
1 parent 17a7f57 commit 8bc0440

File tree

1 file changed

+11
-5
lines changed
  • message-index/messages/S-6602/empty

1 file changed

+11
-5
lines changed

message-index/messages/S-6602/empty/index.md

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,19 @@
22
title: Stack does not accept empty YAML files
33
---
44

5-
When run with an empty YAML file, Stack fails to parse it. In particular, `stack --stack-yaml empty.yaml build` results in the error:
5+
When run with an empty YAML file, Stack fails to parse it. For example, `stack --stack-yaml empty.yaml build` results in the error:
66
```
77
Error: [S-6602]
8-
Could not parse '/PATH/TO/empty.yaml':
9-
Aeson exception:
10-
Error in $: parsing ProjectAndConfigMonoid failed, expected Object, but encountered Null
11-
See http://docs.haskellstack.org/en/stable/yaml_configuration/
8+
Stack could not load and parse /PATH/TO/empty.yaml as a YAML
9+
configuraton file.
10+
11+
While loading and parsing, Stack encountered the following exception:
12+
13+
Aeson exception:
14+
Error in $: parsing ProjectAndConfigMonoid failed, expected Object, but encountered Null
15+
16+
For help about the content of Stack's YAML configuration files, see (for the most recent release of
17+
Stack) http://docs.haskellstack.org/en/stable/yaml_configuration/.
1218
```
1319

1420
This can be fixed by specifying a resolver, which is the minimal `stack.yaml` configuration.

0 commit comments

Comments
 (0)