mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Tell user if we reached a dive that was already there
This way it's more obvious why no dives were downloaded. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
e6c2b14588
commit
e8b46039f6
1 changed files with 4 additions and 1 deletions
|
@ -807,8 +807,11 @@ static int dive_cb(const unsigned char *data, unsigned int size,
|
||||||
}
|
}
|
||||||
|
|
||||||
/* If we already saw this dive, abort. */
|
/* If we already saw this dive, abort. */
|
||||||
if (!devdata->force_download && find_dive(&dive->dc))
|
if (!devdata->force_download && find_dive(&dive->dc)) {
|
||||||
|
const char *date_string = get_dive_date_c_string(dive->when);
|
||||||
|
dev_info(devdata, translate("gettextFromC", "Already downloaded dive at %s"), date_string);
|
||||||
goto error_exit;
|
goto error_exit;
|
||||||
|
}
|
||||||
|
|
||||||
dc_parser_destroy(parser);
|
dc_parser_destroy(parser);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue