try ... catch

This commit is contained in:
Feng Lee 2015-07-28 11:22:10 +08:00
parent 0c5594bfcf
commit b701c9ec4f
1 changed files with 1 additions and 1 deletions

View File

@ -75,7 +75,7 @@ handle_call(_Req, _From, State) ->
{reply, ok, State}.
handle_cast({async_submit, Fun}, State) ->
run(Fun),
try run(Fun) catch _:Error -> lager:error("Pooler Error: ~p", [Error]) end,
{noreply, State};
handle_cast(_Msg, State) ->