diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2017-07-09 16:29:16 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2017-07-09 16:29:16 -0700 |
commit | e8b46039f6936d336c0f38dea64c051ec2ce022b (patch) | |
tree | 2ada4d7a1ab09033a4afc8e57e0aac3fe4df7283 /core/libdivecomputer.c | |
parent | e6c2b14588d1a6cf920ae3d84e996238a933e5c5 (diff) | |
download | subsurface-e8b46039f6936d336c0f38dea64c051ec2ce022b.tar.gz |
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>
Diffstat (limited to 'core/libdivecomputer.c')
-rw-r--r-- | core/libdivecomputer.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/core/libdivecomputer.c b/core/libdivecomputer.c index 0e414d360..9fbac0459 100644 --- a/core/libdivecomputer.c +++ b/core/libdivecomputer.c @@ -807,8 +807,11 @@ static int dive_cb(const unsigned char *data, unsigned int size, } /* 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; + } dc_parser_destroy(parser); |