diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2017-10-30 12:27:07 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2017-10-30 12:27:29 -0700 |
commit | 38c4dfd45c71e14c8ed0628e9706c3d033ce0c1b (patch) | |
tree | 642752537b01228628748c78ddbf8ee528d47690 /core | |
parent | 2878f32a224e02ed76cff6b799883f4e319f9e3a (diff) | |
download | subsurface-38c4dfd45c71e14c8ed0628e9706c3d033ce0c1b.tar.gz |
Add a useful error message if we fail to connect to cloud server
Because now we are trying to open a URL as if it was a local file.
Again, the goal is to accelerated debugging if things go wrong.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'core')
-rw-r--r-- | core/git-access.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/core/git-access.c b/core/git-access.c index 1966ab61d..83a8c6054 100644 --- a/core/git-access.c +++ b/core/git-access.c @@ -960,6 +960,8 @@ struct git_repository *is_git_repository(const char *filename, const char **bran } if (subsurface_stat(loc, &st) < 0 || !S_ISDIR(st.st_mode)) { + if (verbose) + fprintf(stderr, "loc %s wasn't found or is not a directory\n", loc); free(loc); free(branch); return dummy_git_repository; |