projects
/
profile
/
ivi
/
automotive-message-broker.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2245a99
)
throw if config is bad
author
Kevron Rees
<tripzero.kev@gmail.com>
Thu, 6 Jun 2013 05:32:58 +0000
(22:32 -0700)
committer
Kevron Rees
<tripzero.kev@gmail.com>
Thu, 6 Jun 2013 05:32:58 +0000
(22:32 -0700)
ambd/pluginloader.cpp
patch
|
blob
|
history
diff --git
a/ambd/pluginloader.cpp
b/ambd/pluginloader.cpp
index
4e191be
..
83c56e0
100644
(file)
--- a/
ambd/pluginloader.cpp
+++ b/
ambd/pluginloader.cpp
@@
-58,6
+58,10
@@
PluginLoader::PluginLoader(string configFile, AbstractRoutingEngine* re, int arg
json_object *rootobject;
json_tokener *tokener = json_tokener_new();
std::string configBuffer = get_file_contents(configFile.c_str());
+ if(configBuffer == "")
+ {
+ throw std::runtime_error("No config or config empty");
+ }
enum json_tokener_error err;
do
{