mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-20 16:50:48 +00:00
Reverted part of changes #4188
This commit is contained in:
parent
9b75767135
commit
2eb861c143
@ -22,7 +22,6 @@ namespace ErrorCodes
|
||||
extern const int STD_EXCEPTION;
|
||||
extern const int UNKNOWN_EXCEPTION;
|
||||
extern const int CANNOT_TRUNCATE_FILE;
|
||||
extern const int LOGICAL_ERROR;
|
||||
}
|
||||
|
||||
|
||||
@ -78,10 +77,6 @@ std::string getCurrentExceptionMessage(bool with_stacktrace, bool check_embedded
|
||||
|
||||
try
|
||||
{
|
||||
// Avoid terminate if called outside catch block. Should not happen.
|
||||
if (!std::current_exception())
|
||||
return "No exception.";
|
||||
|
||||
throw;
|
||||
}
|
||||
catch (const Exception & e)
|
||||
@ -134,10 +129,6 @@ int getCurrentExceptionCode()
|
||||
{
|
||||
try
|
||||
{
|
||||
// Avoid terminate if called outside catch block. Should not happen.
|
||||
if (!std::current_exception())
|
||||
return ErrorCodes::LOGICAL_ERROR;
|
||||
|
||||
throw;
|
||||
}
|
||||
catch (const Exception & e)
|
||||
|
Loading…
Reference in New Issue
Block a user