[rygel] core: Use proper error code for invalid channel



commit 3a824c7a799147addfbe209221b8899ba8edd0d4
Author: Jens Georg <mail jensge org>
Date:   Fri May 11 13:54:24 2012 +0200

    core: Use proper error code for invalid channel

 src/rygel/rygel-rendering-control.vala |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/rygel/rygel-rendering-control.vala b/src/rygel/rygel-rendering-control.vala
index 581fff1..b50240f 100644
--- a/src/rygel/rygel-rendering-control.vala
+++ b/src/rygel/rygel-rendering-control.vala
@@ -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;
         }



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