aboutsummaryrefslogtreecommitdiffstats
path: root/lib/syntax_tools
diff options
context:
space:
mode:
authorRichard Carlsson <[email protected]>2012-08-08 16:10:07 +0300
committerBruce Yinhe <[email protected]>2014-12-29 09:28:02 +0100
commit70f7c1745e8fb461566c57e77e4188052e84a18c (patch)
treea9437bf3d5f3776a619baa0853e61316e1341939 /lib/syntax_tools
parente2a09281ec8d60cd47f86caa59d41d3cd945d8bc (diff)
downloadotp-70f7c1745e8fb461566c57e77e4188052e84a18c.tar.gz
otp-70f7c1745e8fb461566c57e77e4188052e84a18c.tar.bz2
otp-70f7c1745e8fb461566c57e77e4188052e84a18c.zip
fix bad format of error in epp_dodger:parse_file/3
Diffstat (limited to 'lib/syntax_tools')
-rw-r--r--lib/syntax_tools/src/epp_dodger.erl6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/syntax_tools/src/epp_dodger.erl b/lib/syntax_tools/src/epp_dodger.erl
index 7e12eab1b5..3ca7a8197e 100644
--- a/lib/syntax_tools/src/epp_dodger.erl
+++ b/lib/syntax_tools/src/epp_dodger.erl
@@ -88,7 +88,7 @@
%% This is a so-called Erlang I/O ErrorInfo structure; see the {@link
%% //stdlib/io} module for details.
--type errorinfo() :: term(). % {integer(), atom(), term()}.
+-type errorinfo() :: {integer(), atom(), term()}.
-type option() :: atom() | {atom(), term()}.
@@ -208,8 +208,8 @@ do_parse_file(DefEncoding, File, Parser, Options) ->
try Parser(Dev, 1, Options)
after ok = file:close(Dev)
end;
- {error, _} = Error ->
- Error
+ {error, Error} ->
+ {error, {0, file, Error}} % defer to file:format_error/1
end.
find_invalid_unicode([H|T]) ->