Skip to content

Commit 6a160db

Browse files
Gabriella439mergify[bot]
authored andcommitted
Including missing field name in short error message (#1519)
* Including missing field name in short error message Fixes #1513 * Escape reserved labels in the error message ... as suggested by @sjakobi
1 parent d9ea71c commit 6a160db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dhall/src/Dhall/TypeCheck.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3687,7 +3687,7 @@ prettyTypeMessage (CantProjectByExpression expr) = ErrorMessages {..}
36873687

36883688
prettyTypeMessage (MissingField k expr0) = ErrorMessages {..}
36893689
where
3690-
short = "Missing record field"
3690+
short = "Missing record field: " <> Dhall.Pretty.Internal.prettyLabel k
36913691

36923692
long =
36933693
"Explanation: You can only access fields on records, like this: \n\

0 commit comments

Comments
 (0)