summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2018-06-21 15:49:20 +0900
committerGravatar Dirk Hohndel <dirk@hohndel.org>2018-06-21 15:49:23 +0900
commit05a00f31e9d6b826b87c5f3bfc5f38251bf7cf12 (patch)
tree91829a950a3fa8e7f8bfa01ad56cd224929f4416 /core
parent69360475384e1a7430f9e258298e5cfd0cc3fddd (diff)
downloadsubsurface-05a00f31e9d6b826b87c5f3bfc5f38251bf7cf12.tar.gz
mobile: better message regarding logfiles
On mobile those area always created and available for simple cut and paste. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'core')
-rw-r--r--core/libdivecomputer.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/core/libdivecomputer.c b/core/libdivecomputer.c
index 499428fc8..4d5b278a5 100644
--- a/core/libdivecomputer.c
+++ b/core/libdivecomputer.c
@@ -1385,7 +1385,11 @@ const char *do_libdivecomputer_import(device_data_t *data)
rc = dc_device_open(&data->device, data->context, data->descriptor, data->iostream);
INFO(0, "dc_device_open error value of %d", rc);
if (rc != DC_STATUS_SUCCESS && subsurface_access(data->devname, R_OK | W_OK) != 0)
+#if defined(SUBSURFACE_MOBILE)
+ err = translate("gettextFromC", "Error opening the device %s %s (%s).\nIn most cases, in order to debug this issue, it is useful to send the developers the log files. You can copy them to the clipboard in the About dialog.");
+#else
err = translate("gettextFromC", "Error opening the device %s %s (%s).\nIn most cases, in order to debug this issue, a libdivecomputer logfile will be useful.\nYou can create this logfile by selecting the corresponding checkbox in the download dialog.");
+#endif
}
if (rc == DC_STATUS_SUCCESS) {