try ... catch
This commit is contained in:
parent
0c5594bfcf
commit
b701c9ec4f
|
@ -75,7 +75,7 @@ handle_call(_Req, _From, State) ->
|
||||||
{reply, ok, State}.
|
{reply, ok, State}.
|
||||||
|
|
||||||
handle_cast({async_submit, Fun}, State) ->
|
handle_cast({async_submit, Fun}, State) ->
|
||||||
run(Fun),
|
try run(Fun) catch _:Error -> lager:error("Pooler Error: ~p", [Error]) end,
|
||||||
{noreply, State};
|
{noreply, State};
|
||||||
|
|
||||||
handle_cast(_Msg, State) ->
|
handle_cast(_Msg, State) ->
|
||||||
|
|
Loading…
Reference in New Issue