From 4085782b05657f8f7ad670dd563ca2d75a63bce5 Mon Sep 17 00:00:00 2001 From: Alexey Milovidov Date: Sun, 21 Feb 2021 15:34:48 +0300 Subject: [PATCH] More gentle exception messages --- src/Functions/FunctionsConversion.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Functions/FunctionsConversion.h b/src/Functions/FunctionsConversion.h index b95d4ea9790..74d8d853dcb 100644 --- a/src/Functions/FunctionsConversion.h +++ b/src/Functions/FunctionsConversion.h @@ -1313,7 +1313,7 @@ public: else if constexpr (std::is_same_v) return createDecimalMaxPrecision(scale); - throw Exception("Something wrong with toDecimalNN()", ErrorCodes::LOGICAL_ERROR); + throw Exception("Unexpected branch in code of conversion function: it is a bug.", ErrorCodes::LOGICAL_ERROR); } else { @@ -1337,7 +1337,7 @@ public: if constexpr (std::is_same_v) return std::make_shared(extractTimeZoneNameFromFunctionArguments(arguments, timezone_arg_position, 0)); else if constexpr (std::is_same_v) - throw Exception("LOGICAL ERROR: It is a bug.", ErrorCodes::LOGICAL_ERROR); + throw Exception("Unexpected branch in code of conversion function: it is a bug.", ErrorCodes::LOGICAL_ERROR); else return std::make_shared(); }