core: Use proper error code for invalid channel
authorJens Georg <mail@jensge.org>
Fri, 11 May 2012 11:54:24 +0000 (13:54 +0200)
committerJens Georg <mail@jensge.org>
Mon, 28 May 2012 17:11:58 +0000 (19:11 +0200)
src/rygel/rygel-rendering-control.vala

index 581fff1..b50240f 100644 (file)
@@ -171,7 +171,7 @@ internal class Rygel.RenderingControl : Service {
 
         action.get ("Channel", typeof (string), out channel);
         if (channel != "Master") {
-            action.return_error (501, _("Action Failed"));
+            action.return_error (703, _("Invalid Channel"));
 
             return false;
         }