summaryrefslogtreecommitdiff
path: root/cpp/src/IcePack/ServiceDeployer.cpp
diff options
context:
space:
mode:
authorBenoit Foucher <benoit@zeroc.com>2002-07-24 18:23:23 +0000
committerBenoit Foucher <benoit@zeroc.com>2002-07-24 18:23:23 +0000
commit6de52073a907e0d35657cc66b0214ba17ed19f62 (patch)
treebc81b1b5c9477a1dfb4634b4a0406a223eb2ae24 /cpp/src/IcePack/ServiceDeployer.cpp
parentuse ICE_HOME to find slice files (diff)
downloadice-6de52073a907e0d35657cc66b0214ba17ed19f62.tar.bz2
ice-6de52073a907e0d35657cc66b0214ba17ed19f62.tar.xz
ice-6de52073a907e0d35657cc66b0214ba17ed19f62.zip
Much improved error handling and reporting.
Diffstat (limited to 'cpp/src/IcePack/ServiceDeployer.cpp')
-rw-r--r--cpp/src/IcePack/ServiceDeployer.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/cpp/src/IcePack/ServiceDeployer.cpp b/cpp/src/IcePack/ServiceDeployer.cpp
index 523e4f1324b..817799f6b1d 100644
--- a/cpp/src/IcePack/ServiceDeployer.cpp
+++ b/cpp/src/IcePack/ServiceDeployer.cpp
@@ -131,9 +131,7 @@ IcePack::ServiceDeployer::setDBEnv(const string& dir)
{
if(_kind != ServiceKindFreeze)
{
- cerr << "Database environment is only allowed for Freeze services." << endl;
- _error++;
- return;
+ throw DeploySAXParseException("Database environment is only allowed for Freeze services", _locator);
}
string path;