summaryrefslogtreecommitdiff
path: root/owner
diff options
context:
space:
mode:
authorVitaly Minko <vitaly.minko@gmail.com>2018-11-10 00:40:18 +0300
committerVitaly Minko <vitaly.minko@gmail.com>2018-11-10 00:40:18 +0300
commit273692608991f45713024ecd867abcbf51a666a9 (patch)
tree9bdec3ea854168c12b4fa8002ae1e0a6d2843568 /owner
parentce1cc2c86dc19a9b26eb6c9376986195a5c5fe8b (diff)
Fixed bugs in the latest changes.
Diffstat (limited to 'owner')
-rw-r--r--owner/owner.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/owner/owner.go b/owner/owner.go
index a866a69..cf20fc6 100644
--- a/owner/owner.go
+++ b/owner/owner.go
@@ -113,8 +113,10 @@ func Register(dir, nickname, info string, subs subs.Subscriptions) error {
prf := NewProfile(pDB, u.ID())
for _, t := range subs {
err := prf.PutSubscription(t)
- log.Errorf("Failed to put subscription %s into the owner's profile: %v", t, err)
- return err
+ if err != nil {
+ log.Errorf("Failed to put sub %s into the owner's profile: %v", t, err)
+ return err
+ }
}
err = s.Close()