Improve heredoc error message (#9048)

This commit is contained in:
kw7oe
2019-05-19 10:10:11 +02:00
committed by Fernando Tapia Rico
parent 76a7aebc8e
commit f44adfbeb0
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -879,7 +879,7 @@ extract_heredoc(Line0, Column0, Rest0, Marker, Scope) ->
{error, {ErrorLine, ErrorColumn, Message, Token}}
end;
error ->
Message = "heredoc start must be followed by a new line after ",
Message = "heredoc allows only zero or more whitespace characters followed by a new line after ",
{error, {Line0, Column0, io_lib:format(Message, []), [Marker, Marker, Marker]}}
end.