diff options
Diffstat (limited to 'core/file.c')
-rw-r--r-- | core/file.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/core/file.c b/core/file.c index 874a4e2c3..e818c9e21 100644 --- a/core/file.c +++ b/core/file.c @@ -497,9 +497,8 @@ int parse_file(const char *filename) return git_load_dives(git, branch); if ((ret = readfile(filename, &mem)) < 0) { - /* we don't want to display an error if this was the default file or the cloud storage */ - if ((prefs.default_filename && !strcmp(filename, prefs.default_filename)) || - isCloudUrl(filename)) + /* we don't want to display an error if this was the default file */ + if (same_string(filename, prefs.default_filename)) return 0; return report_error(translate("gettextFromC", "Failed to read '%s'"), filename); |