File tree Expand file tree Collapse file tree 5 files changed +5
-11
lines changed Expand file tree Collapse file tree 5 files changed +5
-11
lines changed Original file line number Diff line number Diff line change @@ -200,7 +200,7 @@ class TMain : public TMainBase {
200
200
}
201
201
});
202
202
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" )
204
204
.RequiredArgument (" topic" )
205
205
.Handler1 ([this ](const NLastGetopt::TOptsParser* option) {
206
206
TopicsSettings[option->CurVal ()].CancelOnFileFinish = true ;
Original file line number Diff line number Diff line change 9
9
PEERDIR(
10
10
library/cpp/colorizer
11
11
library/cpp/testing/unittest
12
- util
13
12
ydb/core/fq/libs/config/protos
14
13
ydb/core/fq/libs/control_plane_proxy/events
15
14
ydb/core/fq/libs/init
Original file line number Diff line number Diff line change @@ -14,7 +14,6 @@ PEERDIR(
14
14
library/cpp/colorizer
15
15
library/cpp/getopt
16
16
library/cpp/lfalloc/alloc_profiler
17
- util
18
17
ydb/core/blob_depot
19
18
ydb/library/yql/providers/pq/gateway/dummy
20
19
ydb/tests/tools/fqrun/src
Original file line number Diff line number Diff line change @@ -47,14 +47,11 @@ class TChoices {
47
47
48
48
const auto it = ChoicesMap.find (choice);
49
49
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;
56
53
}
57
- ythrow error;
54
+ throw error;
58
55
}
59
56
return it->second ;
60
57
}
Original file line number Diff line number Diff line change 9
9
library/cpp/colorizer
10
10
library/cpp/getopt
11
11
library/cpp/json
12
- util
13
12
ydb/core/base
14
13
ydb/core/blob_depot
15
14
ydb/core/fq/libs/compute/common
You can’t perform that action at this time.
0 commit comments