aboutsummaryrefslogtreecommitdiff
path: root/src/mod_carboncopy_sql.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/mod_carboncopy_sql.erl')
-rw-r--r--src/mod_carboncopy_sql.erl9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/mod_carboncopy_sql.erl b/src/mod_carboncopy_sql.erl
index 1b8e1e111..cda8c60d0 100644
--- a/src/mod_carboncopy_sql.erl
+++ b/src/mod_carboncopy_sql.erl
@@ -48,8 +48,7 @@ enable(LUser, LServer, LResource, NS) ->
"node=%(NodeS)s"]) of
ok ->
ok;
- Err ->
- ?ERROR_MSG("failed to update 'carboncopy' table: ~p", [Err]),
+ _Err ->
{error, db_failure}
end.
@@ -60,8 +59,7 @@ disable(LUser, LServer, LResource) ->
"and %(LServer)H and resource=%(LResource)s")) of
{updated, _} ->
ok;
- Err ->
- ?ERROR_MSG("failed to delete from 'carboncopy' table: ~p", [Err]),
+ _Err ->
{error, db_failure}
end.
@@ -73,8 +71,7 @@ list(LUser, LServer) ->
{selected, Rows} ->
{ok, [{Resource, NS, binary_to_atom(Node, latin1)}
|| {Resource, NS, Node} <- Rows]};
- Err ->
- ?ERROR_MSG("failed to select from 'carboncopy' table: ~p", [Err]),
+ _Err ->
{error, db_failure}
end.