From 6dc419bbf51c560182fe930d72c2a78e685474d2 Mon Sep 17 00:00:00 2001 From: Vidar Holen Date: Sat, 2 Jul 2016 15:40:29 -0700 Subject: [PATCH] Improve warning for 'else if'. --- ShellCheck/Parser.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ShellCheck/Parser.hs b/ShellCheck/Parser.hs index c4170af..fc76678 100644 --- a/ShellCheck/Parser.hs +++ b/ShellCheck/Parser.hs @@ -1935,7 +1935,7 @@ readElifPart = called "elif clause" $ do pos <- getPosition correctElif <- elif unless correctElif $ - parseProblemAt pos ErrorC 1075 "Use 'elif' instead of 'else if'." + parseProblemAt pos ErrorC 1075 "Use 'elif' instead of 'else if' (or put 'if' on new line if nesting)." allspacing condition <- readTerm