aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBruce Yinhe <[email protected]>2015-01-15 11:17:36 +0100
committerBruce Yinhe <[email protected]>2015-01-15 11:17:36 +0100
commit78a6bc3476fdf324a2140c04a42d003a0e9137ea (patch)
tree327984d010ea085d157414101000368767ad03cf
parentb82a08a8f1a82de403f487d7fdb0a3ed7ac6be64 (diff)
parentbbea5be67137f5425ab08805b070e31a9df19605 (diff)
downloadotp-78a6bc3476fdf324a2140c04a42d003a0e9137ea.tar.gz
otp-78a6bc3476fdf324a2140c04a42d003a0e9137ea.tar.bz2
otp-78a6bc3476fdf324a2140c04a42d003a0e9137ea.zip
Merge branch 'maint'
-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]) ->