Skip to content

Commit

Permalink
Better before and after explanation for import error
Browse files Browse the repository at this point in the history
  • Loading branch information
philderbeast committed Dec 16, 2024
1 parent fea5ddc commit a74ddc3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions changelog.d/pr-10644
Original file line number Diff line number Diff line change
Expand Up @@ -124,10 +124,10 @@ if false
elif _
```


* Before the fix:

The parse error is shown with hard line breaks.
The project rather than the imported configuration file is shown as the
source file.

```
$ ~/.ghcup/bin/cabal-3.12.1.0 build all --dry-run
Expand All @@ -140,8 +140,8 @@ elif _

* After the fix:

The snippet that failed to parse may be shown and the parse error is shown
as one line, with no hard line breaks.
The imported configuration file is shown as the source with a snippet of the
error.

```
$ cabal build all --dry-run
Expand Down

0 comments on commit a74ddc3

Please sign in to comment.