Skip to content

Commit

Permalink
Fixes implementation of seresye:query_kb/2
Browse files Browse the repository at this point in the history
  • Loading branch information
yrashk committed Feb 2, 2012
1 parent 80bde8b commit 66b7433
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/seresye.erl
Expand Up @@ -76,7 +76,7 @@ get_kb(Name) ->
gen_server:call(Name, get_kb).

query_kb(Name, Pattern) ->
gen_server:call(Name, Pattern).
gen_server:call(Name, {query_kb, Pattern}).


%%%===================================================================
Expand Down Expand Up @@ -183,10 +183,10 @@ handle_call(get_kb, _From, State0) ->
{error, {Type, Reason}}
end,
{reply, Reply, State0};
handle_call(query_kb, _From, State0) ->
handle_call({query_kb, Pattern}, _From, State0) ->
Reply =
try
seresye_engine:query_kb(State0)
seresye_engine:query_kb(State0, Pattern)
catch
Type:Reason ->
{error, {Type, Reason}}
Expand Down

0 comments on commit 66b7433

Please sign in to comment.