diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2015-09-25 10:44:15 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-09-25 10:45:39 -0700 |
commit | c4eb9571bea061531667df467414e9a8cc31831f (patch) | |
tree | 514bd4ebfde9fa7be144b583497e8d711b3e87ba /git-access.c | |
parent | 8462ae27b24cc21d4820aeefe927880621051188 (diff) | |
download | subsurface-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.c | 6 |
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); |