mirror of
https://github.com/jfmengels/elm-review.git
synced 2024-11-26 16:00:29 +03:00
Remove Debug and make range printing more consistent
This commit is contained in:
parent
6133e7d8da
commit
f771ef1540
@ -492,16 +492,16 @@ positionAsRange (SourceCode sourceCode) under position =
|
||||
}
|
||||
|
||||
|
||||
errorToString : Error -> String
|
||||
errorToString error_ =
|
||||
"- \"" ++ Rule.errorMessage error_ ++ "\" at " ++ rangeAsString (Rule.errorRange error_)
|
||||
|
||||
|
||||
rangeAsString : Range -> String
|
||||
rangeAsString { start, end } =
|
||||
"{ start = { row = " ++ String.fromInt start.row ++ ", column = " ++ String.fromInt start.column ++ " }, end = { row = " ++ String.fromInt end.row ++ ", column = " ++ String.fromInt end.column ++ " } }"
|
||||
|
||||
|
||||
errorToString : Error -> String
|
||||
errorToString error_ =
|
||||
"- \"" ++ Rule.errorMessage error_ ++ "\" at " ++ Debug.toString (Rule.errorRange error_)
|
||||
|
||||
|
||||
notEnoughErrors : ExpectedError -> List ExpectedError -> String
|
||||
notEnoughErrors expected restOfExpectedErrors =
|
||||
let
|
||||
|
Loading…
Reference in New Issue
Block a user