summaryrefslogtreecommitdiff
path: root/src/other_tools/just_mr/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/other_tools/just_mr/main.cpp')
-rw-r--r--src/other_tools/just_mr/main.cpp9
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 21cba2f7..29e53048 100644
--- a/src/other_tools/just_mr/main.cpp
+++ b/src/other_tools/just_mr/main.cpp
@@ -749,6 +749,15 @@ auto main(int argc, char* argv[]) -> int {
// Run subcommand `fetch`
if (arguments.cmd == SubCommand::kFetch) {
+ // check fetch configuration arguments for validity
+ if (arguments.common.remote_execution_address and
+ arguments.fetch.backup_to_remote and
+ Compatibility::IsCompatible()) {
+ Logger::Log(LogLevel::Error,
+ "Remote backup for fetched archives only available "
+ "in native mode!");
+ return kExitConfigError;
+ }
return MultiRepoFetch(config,
arguments.common,
arguments.setup,