summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Reichel <sre@ring0.de>2012-10-29 17:47:04 +0100
committerSebastian Reichel <sre@ring0.de>2012-10-29 17:47:04 +0100
commit51aca5934487ac7ecf163b8082fdd29d0e96a009 (patch)
tree6b1c1605237ea5ee70f42fa890962febd79170c4
parent640ed5b264bcefd345cf17edb645c39d243e0c12 (diff)
downloadmicrocopterd-51aca5934487ac7ecf163b8082fdd29d0e96a009.tar.bz2
improve error messages in config.vala
-rw-r--r--config.vala14
1 files 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<MotorController>(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<Gyroscope>(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<Barometer>(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<Accelerometer>(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<Compass>(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<CopterModel>(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<Receiver>(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);