Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix better errors

Signed-off-by: Alexander Dorofeev <aka.spin@gmail.com>
  • Loading branch information...
commit aabb6cad340fb599124f30bcdfe562ec32499e7e 1 parent 5c30023
Alexander Dorofeev akaspin authored
Showing with 3 additions and 1 deletion.
  1. BIN  erldocs
  2. +3 −1 src/erldocs_core.erl
BIN  erldocs
View
Binary file not shown
4 src/erldocs_core.erl
View
@@ -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
@@ -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).
Please sign in to comment.
Something went wrong with that request. Please try again.