[folks] libsocialweb: fix error PersonaStoreError.UNSUPPORTED_ON_USER



commit d64848ea14c025224386c2c9fd58c722947a5963
Author: Alban Crequy <alban crequy collabora co uk>
Date:   Fri Mar 25 15:28:52 2011 +0000

    libsocialweb: fix error PersonaStoreError.UNSUPPORTED_ON_USER

 backends/libsocialweb/lib/swf-persona-store.vala |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/backends/libsocialweb/lib/swf-persona-store.vala b/backends/libsocialweb/lib/swf-persona-store.vala
index 06b1de5..a4c6440 100644
--- a/backends/libsocialweb/lib/swf-persona-store.vala
+++ b/backends/libsocialweb/lib/swf-persona-store.vala
@@ -139,8 +139,7 @@ public class Swf.PersonaStore : Folks.PersonaStore
   public override async Folks.Persona? add_persona_from_details (
       HashTable<string, Value?> details) throws Folks.PersonaStoreError
     {
-      // FIXME: There is no better error for this.
-      throw new PersonaStoreError.UNSUPPORTED_ON_USER (
+      throw new PersonaStoreError.READ_ONLY (
           "Personas cannot be added to this store.");
     }
 
@@ -152,8 +151,7 @@ public class Swf.PersonaStore : Folks.PersonaStore
   public override async void remove_persona (Folks.Persona persona)
       throws Folks.PersonaStoreError
     {
-      // FIXME: There is no better error for this.
-      throw new PersonaStoreError.UNSUPPORTED_ON_USER (
+      throw new PersonaStoreError.READ_ONLY (
           "Personas cannot be removed from this store.");
     }
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]