Skip to content

Commit

Permalink
Fix better errors
Browse files Browse the repository at this point in the history
Signed-off-by: Alexander Dorofeev <aka.spin@gmail.com>
  • Loading branch information
akaspin committed Jul 9, 2011
1 parent 5c30023 commit aabb6ca
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Binary file modified erldocs
Binary file not shown.
4 changes: 3 additions & 1 deletion src/erldocs_core.erl
Expand Up @@ -5,8 +5,10 @@

-ifdef(DEBUG).
-define(LOG(Str, Args), io:format(Str, Args)).
-define(LOG(Str), io:format(Str)).
-else.
-define(LOG(_Str, _Args), ok).
-define(LOG(_Str), ok).
-endif.

%% @doc Copy static files
Expand Down Expand Up @@ -481,7 +483,7 @@ fmt(Format, Args) ->
lists:flatten(io_lib:format(Format, Args)).

log(Str) ->
io:format(Str).
?LOG(Str).
log(Str, Args) ->
?LOG(Str, Args).

Expand Down

0 comments on commit aabb6ca

Please sign in to comment.