diff options
author | Benoit Foucher <benoit@zeroc.com> | 2005-10-17 16:14:28 +0000 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2005-10-17 16:14:28 +0000 |
commit | 0ac98b0901f78a17fd74780fd217719cad2ed529 (patch) | |
tree | a393ac9ac8d3bb1ba0b82c3502d7020a5431ea74 /cpp/src/IceGrid/Parser.cpp | |
parent | bug 515: remove Ice.ConnectionIdleTime (diff) | |
download | ice-0ac98b0901f78a17fd74780fd217719cad2ed529.tar.bz2 ice-0ac98b0901f78a17fd74780fd217719cad2ed529.tar.xz ice-0ac98b0901f78a17fd74780fd217719cad2ed529.zip |
Changed IceGrid::Admin::start() to provide the reason of the failure to
start the server.
Diffstat (limited to 'cpp/src/IceGrid/Parser.cpp')
-rw-r--r-- | cpp/src/IceGrid/Parser.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/cpp/src/IceGrid/Parser.cpp b/cpp/src/IceGrid/Parser.cpp index 0ea7890faf2..b94bd1fcfbc 100644 --- a/cpp/src/IceGrid/Parser.cpp +++ b/cpp/src/IceGrid/Parser.cpp @@ -632,10 +632,11 @@ Parser::startServer(const list<string>& args) try { - if(!_admin->startServer(args.front())) - { - error("the server didn't start successfully"); - } + _admin->startServer(args.front()); + } + catch(const ServerStartException& ex) + { + error("the server didn't start successfully:\n" + ex.reason); } catch(const Ice::Exception& ex) { |