summaryrefslogtreecommitdiff
path: root/src/librygel-renderer/rygel-rendering-control.vala
diff options
context:
space:
mode:
authorJens Georg <mail@jensge.org>2012-08-12 20:14:56 +0200
committerJens Georg <mail@jensge.org>2012-08-12 20:15:00 +0200
commitb3226f8c1e2255b8621a39658b6cdf0fd5eb29f1 (patch)
tree5fe69a44ada65b66cc29b7f67138f27058afc5cd /src/librygel-renderer/rygel-rendering-control.vala
parent0651af8d9c92e01f24e5692abac11ec0c6b91a24 (diff)
downloadrygel-b3226f8c1e2255b8621a39658b6cdf0fd5eb29f1.tar.gz
core: Canonicalize error descriptions
Fixes: https://bugzilla.gnome.org/show_bug.cgi?id=681452
Diffstat (limited to 'src/librygel-renderer/rygel-rendering-control.vala')
-rw-r--r--src/librygel-renderer/rygel-rendering-control.vala6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/librygel-renderer/rygel-rendering-control.vala b/src/librygel-renderer/rygel-rendering-control.vala
index 35ebce80..0c5e759f 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;
}