aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2017-08-21 08:13:19 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-08-21 08:13:19 -0700
commit5de49401c89ccfd411d1f5280c2c2e3c6b231fe1 (patch)
tree0186c8a3dbf5869b390eabd511c9a914709ee02e /core
parent6554e4f21e4deaa6b140ff09e07f629474257308 (diff)
downloadsubsurface-5de49401c89ccfd411d1f5280c2c2e3c6b231fe1.tar.gz
Improve error message when opening dive computer fails
Instead of the (usually incorrect) text about insufficient privileges, just mention a generic error and suggest that the user creates a libdivecomputer log file. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'core')
-rw-r--r--core/libdivecomputer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/libdivecomputer.c b/core/libdivecomputer.c
index 2c5f607da..ebffad2bf 100644
--- a/core/libdivecomputer.c
+++ b/core/libdivecomputer.c
@@ -1113,7 +1113,7 @@ const char *do_libdivecomputer_import(device_data_t *data)
rc = dc_device_open(&data->device, data->context, data->descriptor, data->devname);
INFO(0, "dc_deveice_open error value of %d", rc);
if (rc != DC_STATUS_SUCCESS && subsurface_access(data->devname, R_OK | W_OK) != 0)
- err = translate("gettextFromC", "Insufficient privileges to open the device %s %s (%s)");
+ 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.");
}
if (rc == DC_STATUS_SUCCESS) {