diff options
author | Nick Schermer <nick@xfce.org> | 2012-12-09 21:13:44 +0100 |
---|---|---|
committer | Nick Schermer <nick@xfce.org> | 2012-12-09 21:14:11 +0100 |
commit | 337b272bf5c55753bae76546b4f85a5bd249f7c8 (patch) | |
tree | 5c4d3140f825359fefd244b6256428069d3bb360 /thunar-volman | |
parent | 460e37dbb0936e25f13f433ac24e1fd4c81cc5e5 (diff) | |
download | thunar-volman-337b272bf5c55753bae76546b4f85a5bd249f7c8.tar.gz |
Print a bit more info what type is not supported.
Diffstat (limited to 'thunar-volman')
-rw-r--r-- | thunar-volman/tvm-block-device.c | 2 | ||||
-rw-r--r-- | thunar-volman/tvm-device.c | 3 | ||||
-rw-r--r-- | thunar-volman/tvm-input-device.c | 2 | ||||
-rw-r--r-- | thunar-volman/tvm-usb-device.c | 2 |
4 files changed, 5 insertions, 4 deletions
diff --git a/thunar-volman/tvm-block-device.c b/thunar-volman/tvm-block-device.c index 56969ed..072f198 100644 --- a/thunar-volman/tvm-block-device.c +++ b/thunar-volman/tvm-block-device.c @@ -916,7 +916,7 @@ automount_disc: { /* generate an error for logging */ g_set_error (context->error, G_FILE_ERROR, G_FILE_ERROR_FAILED, - _("Unknown block device type")); + _("Unknown block device type \"%s\""), devtype); /* finish processing the device */ tvm_device_handler_finished (context); diff --git a/thunar-volman/tvm-device.c b/thunar-volman/tvm-device.c index 7249769..90cf94b 100644 --- a/thunar-volman/tvm-device.c +++ b/thunar-volman/tvm-device.c @@ -136,7 +136,8 @@ tvm_device_added (TvmContext *context) else { g_set_error (context->error, G_FILE_ERROR, G_FILE_ERROR_FAILED, - _("Device type not supported")); + _("Device type \"%s\" not supported"), + g_udev_device_get_property (context->device, "DEVNAME")); g_main_loop_quit (context->loop); } } diff --git a/thunar-volman/tvm-input-device.c b/thunar-volman/tvm-input-device.c index 71af8ac..d78ce95 100644 --- a/thunar-volman/tvm-input-device.c +++ b/thunar-volman/tvm-input-device.c @@ -138,7 +138,7 @@ tvm_input_device_added (TvmContext *context) { /* return an error because we cannot handle the input device */ g_set_error (context->error, G_FILE_ERROR, G_FILE_ERROR_FAILED, - _("Unsupported input device type")); + _("Unsupported input device type \"%s\""), devname); } /* finish processing the device */ diff --git a/thunar-volman/tvm-usb-device.c b/thunar-volman/tvm-usb-device.c index c5b3613..140f50e 100644 --- a/thunar-volman/tvm-usb-device.c +++ b/thunar-volman/tvm-usb-device.c @@ -97,7 +97,7 @@ tvm_usb_device_added (TvmContext *context) { /* return an error because we cannot handle the usb device */ g_set_error (context->error, G_FILE_ERROR, G_FILE_ERROR_FAILED, - _("Unsupported USB device type")); + _("Unsupported USB device type \"%s\""), driver); } /* finish processing the device */ |