diff options
Diffstat (limited to 'cpp/src/FreezeScript/Util.cpp')
-rw-r--r-- | cpp/src/FreezeScript/Util.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/cpp/src/FreezeScript/Util.cpp b/cpp/src/FreezeScript/Util.cpp index 16363eb054e..f59b5637d63 100644 --- a/cpp/src/FreezeScript/Util.cpp +++ b/cpp/src/FreezeScript/Util.cpp @@ -244,10 +244,15 @@ FreezeScript::readCatalog(const Ice::CommunicatorPtr& communicator, const string dbEnv.close(0); throw FailureException(__FILE__, __LINE__, string("database error: ") + ex.what()); } + catch(const IceUtil::FileLockException&) + { + dbEnv.close(0); + throw FailureException(__FILE__, __LINE__, "environment `" + dbEnvName + "' is locked"); + } catch(...) { dbEnv.close(0); - throw FailureException(__FILE__, __LINE__, "unknown exception"); + throw; } dbEnv.close(0); |