Skip to content

Commit 0e05cf9

Browse files
committed
Fixed issues
1 parent 2c93408 commit 0e05cf9

File tree

5 files changed

+5
-11
lines changed

5 files changed

+5
-11
lines changed

ydb/tests/tools/fqrun/fqrun.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ class TMain : public TMainBase {
200200
}
201201
});
202202

203-
options.AddLongOption("cnacel-on-file-finish", "Cancel emulate YDS topics when topic file finished")
203+
options.AddLongOption("cancel-on-file-finish", "Cancel emulate YDS topics when topic file finished")
204204
.RequiredArgument("topic")
205205
.Handler1([this](const NLastGetopt::TOptsParser* option) {
206206
TopicsSettings[option->CurVal()].CancelOnFileFinish = true;

ydb/tests/tools/fqrun/src/ya.make

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ SRCS(
99
PEERDIR(
1010
library/cpp/colorizer
1111
library/cpp/testing/unittest
12-
util
1312
ydb/core/fq/libs/config/protos
1413
ydb/core/fq/libs/control_plane_proxy/events
1514
ydb/core/fq/libs/init

ydb/tests/tools/fqrun/ya.make

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ PEERDIR(
1414
library/cpp/colorizer
1515
library/cpp/getopt
1616
library/cpp/lfalloc/alloc_profiler
17-
util
1817
ydb/core/blob_depot
1918
ydb/library/yql/providers/pq/gateway/dummy
2019
ydb/tests/tools/fqrun/src

ydb/tests/tools/kqprun/runlib/utils.h

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -47,14 +47,11 @@ class TChoices {
4747

4848
const auto it = ChoicesMap.find(choice);
4949
if (it == ChoicesMap.end()) {
50-
auto error = yexception() << "Value '" << choice << "' is not allowed " << (OptionName ? TStringBuilder() << "for option " << OptionName : TStringBuilder()) << ", available variants:\n";
51-
for (auto it = ChoicesMap.begin(); it != ChoicesMap.end();) {
52-
error << choice;
53-
if (++it != ChoicesMap.end()) {
54-
error << ", ";
55-
}
50+
auto error = yexception() << "Value '" << choice << "' is not allowed " << (OptionName ? TStringBuilder() << "for option " << OptionName : TStringBuilder()) << ", available variants:";
51+
for (const auto& [value, _] : ChoicesMap) {
52+
error << " " << value;
5653
}
57-
ythrow error;
54+
throw error;
5855
}
5956
return it->second;
6057
}

ydb/tests/tools/kqprun/runlib/ya.make

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ PEERDIR(
99
library/cpp/colorizer
1010
library/cpp/getopt
1111
library/cpp/json
12-
util
1312
ydb/core/base
1413
ydb/core/blob_depot
1514
ydb/core/fq/libs/compute/common

0 commit comments

Comments
 (0)