From: Zeeshan Ali (Khattak) Date: Fri, 17 Dec 2010 15:23:16 +0000 (+0200) Subject: core: Correct handling of an N/A config X-Git-Tag: RYGEL_0_9_6~5 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4a08001bdf4fa87d42753c56284c76e696af2438;p=profile%2Fivi%2Frygel.git core: Correct handling of an N/A config If a configuration key is not available from a configuration source, we should be throwing the appropriate error. --- diff --git a/src/rygel/rygel-environment-config.vala b/src/rygel/rygel-environment-config.vala index 4f62abe..20866bd 100644 --- a/src/rygel/rygel-environment-config.vala +++ b/src/rygel/rygel-environment-config.vala @@ -56,7 +56,7 @@ internal class Rygel.EnvironmentConfig : GLib.Object, Configuration { // This config doesn't make sense in this context. public bool get_upnp_enabled () throws GLib.Error { - return true; + throw new ConfigurationError.NO_VALUE_SET (_("No value available")); } public string get_interface () throws GLib.Error {