Commit e78cb351 authored by Markus Jylhänkangas's avatar Markus Jylhänkangas
Browse files

Fix error message and indentation

parent eab78e49
......@@ -1605,11 +1605,11 @@ sub delete_list_member {
$self->_cache_publish_expiry('member');
my $rc = $sdm->commit;
unless ($rc) {
$log->syslog('err', 'Error at delete member commit: %s', $sdm->errstr);
$sdm->rollback;
}
my $rc = $sdm->commit;
unless ($rc) {
$log->syslog('err', 'Error at delete member commit: %s', $sdm->error);
$sdm->rollback;
}
return (-1 * $total);
......@@ -3376,11 +3376,11 @@ sub add_list_member {
$self->{'add_outcome'}{'remaining_member_to_add'}--;
$current_list_members_count++;
}
my $rc = $sdm->commit;
unless ($rc) {
$log->syslog('err', 'Error at add member commit: %s', $sdm->errstr);
$sdm->rollback;
}
my $rc = $sdm->commit;
unless ($rc) {
$log->syslog('err', 'Error at add member commit: %s', $sdm->error);
$sdm->rollback;
}
$self->_cache_publish_expiry('member');
......
......@@ -465,11 +465,11 @@ sub _update_users {
}
}
my $rc = $sdm->commit;
unless ($rc) {
$log->syslog('err', 'Error at update user commit: %s', $sdm->errstr);
$sdm->rollback;
}
my $rc = $sdm->commit;
unless ($rc) {
$log->syslog('err', 'Error at update user commit: %s', $sdm->error);
$sdm->rollback;
}
my @list_of_new_users;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment