Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fix bad format of error in epp_dodger:parse_file/3

  • Loading branch information...
commit 0888cf4a089796a93115bc8ab39dc33cb6456a91 1 parent 81048f9
Richard Carlsson authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/epp_dodger.erl
View
6 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()}.
@@ -189,8 +189,8 @@ parse_file(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.

0 comments on commit 0888cf4

Please sign in to comment.
Something went wrong with that request. Please try again.