Permalink
Browse files

fix compilation error in previous commit (thanks again Kostis)

  • Loading branch information...
1 parent ed11020 commit 705cd0ae389e9e893402724dfca761e112586403 @vinoski vinoski committed Apr 22, 2012
Showing with 4 additions and 5 deletions.
  1. +4 −5 src/yaws_trace.erl
View
@@ -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).

0 comments on commit 705cd0a

Please sign in to comment.