From d95229317d8db772745ac06039bdd61aa0806802 Mon Sep 17 00:00:00 2001 From: hcz Date: Fri, 16 Oct 2020 17:50:47 +0800 Subject: [PATCH] Change error message in function if & ifNull --- src/Functions/if.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Functions/if.cpp b/src/Functions/if.cpp index dd67f922ddf..97ab7fca0cd 100644 --- a/src/Functions/if.cpp +++ b/src/Functions/if.cpp @@ -160,7 +160,7 @@ struct NumIfImpl private: [[noreturn]] static void throwError() { - throw Exception("Invalid types of arguments 2 and 3 of if", ErrorCodes::ILLEGAL_TYPE_OF_ARGUMENT); + throw Exception("Incompatible types of arguments corresponding to two conditional branches", ErrorCodes::ILLEGAL_TYPE_OF_ARGUMENT); } public: template static void vectorVector(Args &&...) { throwError(); }