From 51aca5934487ac7ecf163b8082fdd29d0e96a009 Mon Sep 17 00:00:00 2001 From: Sebastian Reichel Date: Mon, 29 Oct 2012 17:47:04 +0100 Subject: improve error messages in config.vala --- config.vala | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/config.vala b/config.vala index 4b28296..6a3f647 100644 --- a/config.vala +++ b/config.vala @@ -26,7 +26,7 @@ public class Config : KeyFile { var plugin = new PluginLoader(path); if(!plugin.load()) - throw new KeyFileError.INVALID_VALUE("Could not load Plugin"); + throw new KeyFileError.INVALID_VALUE("Could not load Engine Plugin"); var result = plugin.new_object(); result.init(this); @@ -39,7 +39,7 @@ public class Config : KeyFile { string path = Path.build_path("/", Environment.get_variable("PWD"), "sensors", "gyroscope", "%s.so".printf(name)); var plugin = new PluginLoader(path); if(!plugin.load()) - throw new KeyFileError.INVALID_VALUE("Could not load Plugin"); + throw new KeyFileError.INVALID_VALUE("Could not load Gyroscope Plugin"); var result = plugin.new_object(); result.init(this); @@ -52,7 +52,7 @@ public class Config : KeyFile { string path = Path.build_path("/", Environment.get_variable("PWD"), "sensors", "barometer", "%s.so".printf(name)); var plugin = new PluginLoader(path); if(!plugin.load()) - throw new KeyFileError.INVALID_VALUE("Could not load Plugin"); + throw new KeyFileError.INVALID_VALUE("Could not load Barometer Plugin"); var result = plugin.new_object(); result.init(this); @@ -65,7 +65,7 @@ public class Config : KeyFile { string path = Path.build_path("/", Environment.get_variable("PWD"), "sensors", "accelerometer", "%s.so".printf(name)); var plugin = new PluginLoader(path); if(!plugin.load()) - throw new KeyFileError.INVALID_VALUE("Could not load Plugin"); + throw new KeyFileError.INVALID_VALUE("Could not load Accelerometer Plugin"); var result = plugin.new_object(); result.init(this); @@ -78,7 +78,7 @@ public class Config : KeyFile { string path = Path.build_path("/", Environment.get_variable("PWD"), "sensors", "compass", "%s.so".printf(name)); var plugin = new PluginLoader(path); if(!plugin.load()) - throw new KeyFileError.INVALID_VALUE("Could not load Plugin"); + throw new KeyFileError.INVALID_VALUE("Could not load Compass Plugin"); var result = plugin.new_object(); result.init(this); @@ -91,7 +91,7 @@ public class Config : KeyFile { string path = Path.build_path("/", Environment.get_variable("PWD"), "ctrl", "models", "%s.so".printf(name)); var plugin = new PluginLoader(path); if(!plugin.load()) - throw new KeyFileError.INVALID_VALUE("Could not load Plugin"); + throw new KeyFileError.INVALID_VALUE("Could not load CopterModel Plugin"); var result = plugin.new_object(); result.init(this); @@ -104,7 +104,7 @@ public class Config : KeyFile { string path = Path.build_path("/", Environment.get_variable("PWD"), "receiver", "%s.so".printf(name)); var plugin = new PluginLoader(path); if(!plugin.load()) - throw new KeyFileError.INVALID_VALUE("Could not load Plugin"); + throw new KeyFileError.INVALID_VALUE("Could not load Receiver Plugin"); var result = plugin.new_object(); result.init(this); -- cgit v1.2.3