[thrift] erlang dialyzer error
authoreletuchy <dev-null@apache.org>
Wed, 27 Feb 2008 18:38:42 +0000 (18:38 +0000)
committereletuchy <dev-null@apache.org>
Wed, 27 Feb 2008 18:38:42 +0000 (18:38 +0000)
Summary: impossible pattern matches are never good

Reviewed By: cpiro

Test Plan: make dialyzer

Revert Plan: sure

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665525 13f79535-47bb-0310-9956-ffa450edef68

lib/erl/src/thrift_oop_server.erl

index d3bc720..ef512bc 100644 (file)
@@ -121,7 +121,7 @@ handle_exception(E, Stack) ->
         {true, _} -> % good
             E1 = tException:add_backtrace_element(E, Stack),
             exit({thrift_exception, E1});
-        false -> % shit
+        {false, _} -> % shit
             ?ERROR("exception wasn't really a tException ~p", [E]),
             exit(bum)
     end.