aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbabenko <babenko@yandex-team.com>2023-08-02 14:03:37 +0300
committerbabenko <babenko@yandex-team.com>2023-08-02 14:03:37 +0300
commit14ca69b73f55d87e2b8d06913c36ea42fba3016f (patch)
tree696de4dd1822a4393dcc0116e0cf31190213ded4
parentb9e765d06fc5afdd31e2786fafbc32c9f7ce4c37 (diff)
downloadydb-14ca69b73f55d87e2b8d06913c36ea42fba3016f.tar.gz
Drop misused __LINE__ in macro
-rw-r--r--yt/yt/core/misc/error.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/yt/yt/core/misc/error.h b/yt/yt/core/misc/error.h
index c99893e4a5..a7d4b60d01 100644
--- a/yt/yt/core/misc/error.h
+++ b/yt/yt/core/misc/error.h
@@ -299,9 +299,9 @@ TException&& operator <<= (TException&& ex, TError&& error);
THROW_ERROR ::NYT::TError(head __VA_OPT__(,) __VA_ARGS__)
#define THROW_ERROR_EXCEPTION_IF_FAILED(error, ...) \
- if (const auto& error__ ## __LINE__ = (error); error__ ## __LINE__ .IsOK()) { \
+ if (const auto& error__ = (error); error__ .IsOK()) { \
} else { \
- THROW_ERROR error__ ## __LINE__.Wrap(__VA_ARGS__); \
+ THROW_ERROR error__.Wrap(__VA_ARGS__); \
}
#define THROW_ERROR_EXCEPTION_UNLESS(condition, head, ...) \