Skip to content

Commit

Permalink
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 669efb6 commit 5c30023
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Binary file modified erldocs
Binary file not shown.
8 changes: 7 additions & 1 deletion src/erldocs_core.erl
Expand Up @@ -3,6 +3,12 @@
-export([mapreduce/4, pmapreduce/4, pmapreduce/5]).
-include_lib("kernel/include/file.hrl").

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

%% @doc Copy static files
-spec copy_static_files(list()) -> ok.
copy_static_files(Conf) ->
Expand Down Expand Up @@ -477,7 +483,7 @@ fmt(Format, Args) ->
log(Str) ->
io:format(Str).
log(Str, Args) ->
io:format(Str, Args).
?LOG(Str, Args).

%% @doc shorthand for lists:keyfind
-spec kf(term(), list()) -> term().
Expand Down

0 comments on commit 5c30023

Please sign in to comment.