mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Cloud storage: provide more information in debug builds
It makes sense to hide git URLs from the end user in release builds, but while developing and testing it's better to get more detailed information. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
3478943f2f
commit
9e5e12b5e4
1 changed files with 2 additions and 0 deletions
|
@ -382,8 +382,10 @@ static git_repository *create_local_repo(const char *localdir, const char *remot
|
|||
* to our cloud storage and the branch doesn't exist.
|
||||
* So we need to create the branch and push it to the remote */
|
||||
cloned_repo = create_and_push_remote(localdir, remote, branch);
|
||||
#if !defined(DEBUG)
|
||||
} else if (strstr(remote, prefs.cloud_git_url)) {
|
||||
report_error(translate("gettextFromC", "Error connecting to Subsurface cloud storage"));
|
||||
#endif
|
||||
} else {
|
||||
report_error(translate("gettextFromC", "git clone of %s failed (%s)"), remote, msg);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue