diff options
Diffstat (limited to 'src/other_tools/just_mr/main.cpp')
-rw-r--r-- | src/other_tools/just_mr/main.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/other_tools/just_mr/main.cpp b/src/other_tools/just_mr/main.cpp index 47ec2633..7b7868d0 100644 --- a/src/other_tools/just_mr/main.cpp +++ b/src/other_tools/just_mr/main.cpp @@ -422,6 +422,15 @@ void SetupLogging(MultiRepoLogArguments const& clargs) { auto const& args_list = cmd_args->List(); args.reserve(args_list.size()); for (auto const& arg : args_list) { + if (not arg->IsString()) { + Logger::Log( + LogLevel::Error, + "Configuration-file provided 'just' argument key {} " + "must have strings in its list value, but found {}", + cmd_name, + arg->ToString()); + std::exit(kExitConfigError); + } args.emplace_back(arg->String()); } clargs->just_cmd.just_args[cmd_name] = std::move(args); |