[gvfs/mtp-backend: 17/64] MTP: Print error stack when push or pull fail.
- From: Philip Langdale <philipl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gvfs/mtp-backend: 17/64] MTP: Print error stack when push or pull fail.
- Date: Sat, 12 Jan 2013 04:35:34 +0000 (UTC)
commit b06d12767598d8465f4345b049823bd2aa73c606
Author: Philip Langdale <philipl cloudera com>
Date: Thu Aug 9 14:50:47 2012 -0700
MTP: Print error stack when push or pull fail.
daemon/gvfsbackendmtp.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/daemon/gvfsbackendmtp.c b/daemon/gvfsbackendmtp.c
index 12a9482..6f8b09c 100644
--- a/daemon/gvfsbackendmtp.c
+++ b/daemon/gvfsbackendmtp.c
@@ -749,6 +749,8 @@ do_pull(GVfsBackend *backend,
mtp_progress_data);
g_free(mtp_progress_data);
if (ret != 0) {
+ LIBMTP_Dump_Errorstack(device);
+ LIBMTP_Clear_Errorstack(device);
g_vfs_job_failed (G_VFS_JOB (job),
G_IO_ERROR,
g_vfs_job_is_cancelled(G_VFS_JOB(job)) ?
@@ -840,6 +842,8 @@ do_push(GVfsBackend *backend,
g_free(mtp_progress_data);
LIBMTP_destroy_file_t(mtpfile);
if (ret != 0) {
+ LIBMTP_Dump_Errorstack(device);
+ LIBMTP_Clear_Errorstack(device);
g_vfs_job_failed (G_VFS_JOB (job),
G_IO_ERROR, G_IO_ERROR_FAILED,
"Error while uploading entity.");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]