fix possible misleading error output

Mon, 03 Feb 2025 23:14:11 +0100

author
Mike Becker <universe@uap-core.de>
date
Mon, 03 Feb 2025 23:14:11 +0100
changeset 21
bc8b76ca9ee9
parent 20
8639ccd855ba
child 22
a9230f197e61

fix possible misleading error output

src/main.cpp file | annotate | diff | comparison | revisions
--- a/src/main.cpp	Mon Feb 03 23:13:19 2025 +0100
+++ b/src/main.cpp	Mon Feb 03 23:14:11 2025 +0100
@@ -203,14 +203,14 @@
             if (repo.type == fm::HG) {
                 proc.setbin(settings.hg);
                 if (proc.exec({"pull", "-y"})) {
-                    fprintf(stderr, "Pulling repo '%s' failed!\nMaybe there is no remote?\n", repo.path.c_str());
+                    fprintf(stderr, "Pulling repo '%s' failed - continue without pull.\n", repo.path.c_str());
                 } else if (proc.exec({"update"})) {
                     fprintf(stderr, "Updating repo '%s' failed!\nMaybe there are local changes?\n", repo.path.c_str());
                 }
             } else {
                 proc.setbin(settings.git);
                 if (proc.exec({"pull", "-q"})) {
-                    fprintf(stderr, "Pulling repo '%s' failed!\nMaybe there is no remote or there are local changes?\n", repo.path.c_str());
+                    fprintf(stderr, "Pulling repo '%s' failed - continue without pull.\n", repo.path.c_str());
                 }
             }
         }

mercurial