aboutsummaryrefslogtreecommitdiffstats
path: root/git-access.c
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2015-09-25 10:44:15 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-09-25 10:45:39 -0700
commitc4eb9571bea061531667df467414e9a8cc31831f (patch)
tree514bd4ebfde9fa7be144b583497e8d711b3e87ba /git-access.c
parent8462ae27b24cc21d4820aeefe927880621051188 (diff)
downloadsubsurface-c4eb9571bea061531667df467414e9a8cc31831f.tar.gz
Cloud storage: inform the user if remote sync failed
Being silent in this particular case was the wrong decision as it hides problems. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'git-access.c')
-rw-r--r--git-access.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/git-access.c b/git-access.c
index aa7d38776..6d14868b9 100644
--- a/git-access.c
+++ b/git-access.c
@@ -545,8 +545,12 @@ int sync_with_remote(git_repository *repo, const char *remote, const char *branc
#endif
// NOTE! A fetch error is not fatal, we just report it
if (error) {
- if (!is_subsurface_cloud)
+ if (is_subsurface_cloud)
+ report_error("Cannot sync with cloud server, working with offline copy");
+ else
report_error("Unable to fetch remote '%s'", remote);
+ if (verbose)
+ fprintf(stderr, "remote fetched failed (%s)\n", giterr_last()->message);
error = 0;
} else {
error = check_remote_status(repo, origin, remote, branch, rt);