We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent abe2833 commit 9ab391eCopy full SHA for 9ab391e
include/yaws.hrl
@@ -284,3 +284,6 @@
284
id
285
}).
286
287
+%% Typically used in error printouts as in:
288
+%% error_logger:format("Err ~p at ~p~n", [Reason, ?stack()])
289
+-define(stack(), try throw(1) catch _:_ -> erlang:get_stacktrace() end).
src/yaws_ctl.erl
@@ -63,7 +63,8 @@ rand() ->
63
crypto:start(),
64
crypto:rand_uniform(0, 1 bsl 64)
65
catch
66
- _ ->
+ _:_ ->
67
+ error_logger:warning_msg("Running without crypto app\n"),
68
{A1, A2, A3}=now(),
69
random:seed(A1, A2, A3),
70
random:uniform(1 bsl 64)
0 commit comments