Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fix compilation error in previous commit (thanks again Kostis)

  • Loading branch information...
commit 705cd0ae389e9e893402724dfca761e112586403 1 parent ed11020
@vinoski vinoski authored
Showing with 4 additions and 5 deletions.
  1. +4 −5 src/yaws_trace.erl
View
9 src/yaws_trace.erl
@@ -139,14 +139,13 @@ set_filter(Filter) ->
{ok, E} -> E;
_ -> throw({error, {invalid_filter, parse_failed}})
end,
- try
- {value, Result, _} = erl_eval:exprs(ExprList, [])
+ try erl_eval:exprs(ExprList, []) of
+ {value, Result, _} ->
+ gen_server:call(?MODULE, {set_filter, Result}, infinity)
catch
_:_ ->
throw({error, {invalid_filter, eval_failed}})
- end,
- gen_server:call(?MODULE, {set_filter, Result}, infinity).
-
+ end.
unset_filter() ->
gen_server:call(?MODULE, unset_filter, infinity).
Please sign in to comment.
Something went wrong with that request. Please try again.