diff --git a/src/Review/Test/FailureMessage.elm b/src/Review/Test/FailureMessage.elm index a6fe9912..e1d8d61d 100644 --- a/src/Review/Test/FailureMessage.elm +++ b/src/Review/Test/FailureMessage.elm @@ -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) ++ """ diff --git a/tests/Review/Test/FailureMessageTest.elm b/tests/Review/Test/FailureMessageTest.elm index 5d2d22bd..379a0434 100644 --- a/tests/Review/Test/FailureMessageTest.elm +++ b/tests/Review/Test/FailureMessageTest.elm @@ -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`