aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/resource/registry.cpp
diff options
context:
space:
mode:
authorheretic <heretic@yandex-team.ru>2022-02-10 16:45:46 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:45:46 +0300
commit81eddc8c0b55990194e112b02d127b87d54164a9 (patch)
tree9142afc54d335ea52910662635b898e79e192e49 /library/cpp/resource/registry.cpp
parent397cbe258b9e064f49c4ca575279f02f39fef76e (diff)
downloadydb-81eddc8c0b55990194e112b02d127b87d54164a9.tar.gz
Restoring authorship annotation for <heretic@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/resource/registry.cpp')
-rw-r--r--library/cpp/resource/registry.cpp40
1 files changed, 20 insertions, 20 deletions
diff --git a/library/cpp/resource/registry.cpp b/library/cpp/resource/registry.cpp
index fe584bce7b..66001c4769 100644
--- a/library/cpp/resource/registry.cpp
+++ b/library/cpp/resource/registry.cpp
@@ -51,16 +51,16 @@ namespace {
bool FindExact(const TStringBuf key, TString* out) const override {
if (TDescriptor* const* res = FindPtr(key)) {
- // temporary
- // https://st.yandex-team.ru/DEVTOOLS-3985
- try {
- *out = Decompress((*res)->second);
- } catch (const yexception& e) {
+ // temporary
+ // https://st.yandex-team.ru/DEVTOOLS-3985
+ try {
+ *out = Decompress((*res)->second);
+ } catch (const yexception& e) {
if (GetEnv("RESOURCE_DECOMPRESS_DIAG")) {
- Cerr << "Can't decompress resource " << key << Endl << e.what() << Endl;
- }
- throw e;
- }
+ Cerr << "Can't decompress resource " << key << Endl << e.what() << Endl;
+ }
+ throw e;
+ }
return true;
}
@@ -71,18 +71,18 @@ namespace {
void FindMatch(const TStringBuf subkey, IMatch& cb) const override {
for (const auto& it : *this) {
if (it.first.StartsWith(subkey)) {
- // temporary
- // https://st.yandex-team.ru/DEVTOOLS-3985
- try {
- const TResource res = {
- it.first, Decompress(it.second->second)};
- cb.OnMatch(res);
- } catch (const yexception& e) {
+ // temporary
+ // https://st.yandex-team.ru/DEVTOOLS-3985
+ try {
+ const TResource res = {
+ it.first, Decompress(it.second->second)};
+ cb.OnMatch(res);
+ } catch (const yexception& e) {
if (GetEnv("RESOURCE_DECOMPRESS_DIAG")) {
- Cerr << "Can't decompress resource " << it.first << Endl << e.what() << Endl;
- }
- throw e;
- }
+ Cerr << "Can't decompress resource " << it.first << Endl << e.what() << Endl;
+ }
+ throw e;
+ }
}
}
}