mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
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>
This commit is contained in:
parent
8462ae27b2
commit
c4eb9571be
1 changed files with 5 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue