diff options
author | Marc Laukien <marc@zeroc.com> | 2001-12-07 21:14:18 +0000 |
---|---|---|
committer | Marc Laukien <marc@zeroc.com> | 2001-12-07 21:14:18 +0000 |
commit | 79e61db019e6c9b5e4b22f15bf1c8a32b2b4f011 (patch) | |
tree | 5b462b7c9426c8c7ad4905f6a37805505ae42996 /cpp/src/IceStorm/Server.cpp | |
parent | Fix reaping on shutdown problem for IceStorm. (diff) | |
download | ice-79e61db019e6c9b5e4b22f15bf1c8a32b2b4f011.tar.bz2 ice-79e61db019e6c9b5e4b22f15bf1c8a32b2b4f011.tar.xz ice-79e61db019e6c9b5e4b22f15bf1c8a32b2b4f011.zip |
fixes
Diffstat (limited to 'cpp/src/IceStorm/Server.cpp')
-rw-r--r-- | cpp/src/IceStorm/Server.cpp | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/cpp/src/IceStorm/Server.cpp b/cpp/src/IceStorm/Server.cpp index 65d441fb49a..d27e8873a01 100644 --- a/cpp/src/IceStorm/Server.cpp +++ b/cpp/src/IceStorm/Server.cpp @@ -37,8 +37,17 @@ public: int main(int argc, char* argv[]) { - addArgumentPrefix("IceStorm"); - PropertiesPtr defaultProperties = getDefaultProperties(argc, argv); + try + { + addArgumentPrefix("IceStorm"); + PropertiesPtr defaultProperties = getDefaultProperties(argc, argv); + } + catch(const Exception& ex) + { + cerr << argv[0] << ": " << ex << endl; + return EXIT_FAILURE; + } + string dbEnvName = defaultProperties->getProperty("IceStorm.DBEnvName"); if (dbEnvName.empty()) { |