Change error message for unexpectedDetails

This commit is contained in:
Jeroen Engels 2021-03-08 22:36:09 +01:00
parent e50f753d31
commit f1f97de257
2 changed files with 3 additions and 3 deletions

View File

@ -144,7 +144,7 @@ calling `Rule.error`.""")
unexpectedDetails : List String -> ReviewError -> String
unexpectedDetails expectedDetails error =
failureMessage "UNEXPECTED ERROR DETAILS"
("""I found an error with the following message:
("""I found an error for a file with the following message:
""" ++ wrapInQuotes (Rule.errorMessage error) ++ """

View File

@ -279,7 +279,7 @@ unexpectedDetailsTest =
|> expectMessageEqual """
\u{001B}[31m\u{001B}[1mUNEXPECTED ERROR DETAILS\u{001B}[22m\u{001B}[39m
I found an error with the following message:
I found an error for a file with the following message:
`Some error`
@ -317,7 +317,7 @@ when I was expecting them to be:
|> expectMessageEqual """
\u{001B}[31m\u{001B}[1mUNEXPECTED ERROR DETAILS\u{001B}[22m\u{001B}[39m
I found an error with the following message:
I found an error for a file with the following message:
`Some other error`