Skip to content

Commit

Permalink
Correct typo in error message (#280)
Browse files Browse the repository at this point in the history
  • Loading branch information
eschnett authored Sep 3, 2020
1 parent 8801017 commit 878fda1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/JuliaFormatter.jl
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ end
function format_text(text::AbstractString, style::AbstractStyle, opts::Options)
cst, ps = CSTParser.parse(CSTParser.ParseState(text), true)
line, offset = ps.lt.endpos
ps.errored && error("Parsing error for input occured on line $line, offset: $offset")
ps.errored && error("Parsing error for input occurred on line $line, offset: $offset")
cst.args[1].kind === Tokens.NOTHING && length(cst) == 1 && return text
return format_text(cst, style, State(Document(text), opts))
end
Expand Down

0 comments on commit 878fda1

Please sign in to comment.