[rygel] core: Canonicalize error descriptions



commit b3226f8c1e2255b8621a39658b6cdf0fd5eb29f1
Author: Jens Georg <mail jensge org>
Date:   Sun Aug 12 20:14:56 2012 +0200

    core: Canonicalize error descriptions
    
    Fixes: https://bugzilla.gnome.org/show_bug.cgi?id=681452

 src/librygel-renderer/rygel-av-transport.vala      |    4 ++--
 src/librygel-renderer/rygel-rendering-control.vala |    6 +++---
 2 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/src/librygel-renderer/rygel-av-transport.vala b/src/librygel-renderer/rygel-av-transport.vala
index 5f346fe..3f5e676 100644
--- a/src/librygel-renderer/rygel-av-transport.vala
+++ b/src/librygel-renderer/rygel-av-transport.vala
@@ -212,7 +212,7 @@ internal class Rygel.AVTransport : Service {
         action.get ("InstanceID", typeof (string), out instance_id_string);
         if (instance_id_string == null ||
             !int64.try_parse (instance_id_string, out instance_id)) {
-            action.return_error (402, _("Invalid Args"));
+            action.return_error (402, _("Invalid argument"));
 
             return false;
         }
@@ -523,7 +523,7 @@ internal class Rygel.AVTransport : Service {
             debug ("Seeking to %s.", target);
 
             if (!this.player.seek (GstUtils.time_from_string (target))) {
-                action.return_error (710, _("Seek failed"));
+                action.return_error (710, _("Seek mode not supported"));
 
                 return;
             }
diff --git a/src/librygel-renderer/rygel-rendering-control.vala b/src/librygel-renderer/rygel-rendering-control.vala
index 35ebce8..0c5e759 100644
--- a/src/librygel-renderer/rygel-rendering-control.vala
+++ b/src/librygel-renderer/rygel-rendering-control.vala
@@ -120,7 +120,7 @@ internal class Rygel.RenderingControl : Service {
         action.get ("InstanceID", typeof (string), out instance_id_string);
         if (instance_id_string == null ||
             !int64.try_parse (instance_id_string, out instance_id)) {
-            action.return_error (402, _("Invalid Args"));
+            action.return_error (402, _("Invalid argument"));
 
             return false;
         }
@@ -207,7 +207,7 @@ internal class Rygel.RenderingControl : Service {
         string mute_str;
         action.get ("DesiredMute", typeof (string), out mute_str);
         if (mute_str.has_prefix ("-")) {
-            action.return_error (501, _("ActionFailed"));
+            action.return_error (501, _("Action Failed"));
 
             return;
         }
@@ -249,7 +249,7 @@ internal class Rygel.RenderingControl : Service {
         string volume_str;
         action.get ("DesiredVolume", typeof (string), out volume_str);
         if ("." in volume_str || "," in volume_str) {
-            action.return_error (501, _("ActionFailed"));
+            action.return_error (501, _("Action Failed"));
 
             return;
         }



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