mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
2878f32a22
commit
38c4dfd45c
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue