mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-08-07 02:31:17 +08:00
Punctuated message.
This commit is contained in:
@@ -434,7 +434,7 @@ readCondition = do
|
||||
close <- (try $ string "]]") <|> (string "]") <|> do
|
||||
let match = (if single then "]" else "]]")
|
||||
parseProblemAt opos ErrorC $ "Couldn't find matching " ++ match ++ "."
|
||||
parseProblem ErrorC $ "Expected " ++ match
|
||||
parseProblem ErrorC $ "Expected " ++ match ++ "."
|
||||
fail "condition"
|
||||
|
||||
when (open == "[[" && close /= "]]") $ parseProblemAt cpos ErrorC "Did you mean ]] ?"
|
||||
|
Reference in New Issue
Block a user