From 5de49401c89ccfd411d1f5280c2c2e3c6b231fe1 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Mon, 21 Aug 2017 08:13:19 -0700 Subject: 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 --- core/libdivecomputer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core') 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) { -- cgit v1.2.3-70-g09d2