aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-08-31 17:44:35 +0200
committerMax Kellermann <max@duempel.org>2014-08-31 17:44:35 +0200
commitfd8a53ca3d9ce29e11a88c90e8b69b1a9dcb32b7 (patch)
tree948e6a65dc07ff9b9035503526249bf45101bc1b /src
parent8707aafaf70b4620d010633ce7e677d2a4a9247b (diff)
downloadmpd-fd8a53ca3d9ce29e11a88c90e8b69b1a9dcb32b7.tar.gz
mpd-fd8a53ca3d9ce29e11a88c90e8b69b1a9dcb32b7.tar.xz
mpd-fd8a53ca3d9ce29e11a88c90e8b69b1a9dcb32b7.zip
nfs/Connection: use nfs_get_error() for mount error
Diffstat (limited to '')
-rw-r--r--src/lib/nfs/Connection.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lib/nfs/Connection.cxx b/src/lib/nfs/Connection.cxx
index a99b845b9..e3dac5c81 100644
--- a/src/lib/nfs/Connection.cxx
+++ b/src/lib/nfs/Connection.cxx
@@ -320,8 +320,9 @@ NfsConnection::MountCallback(int status, gcc_unused nfs_context *nfs,
mount_finished = true;
if (status < 0) {
- postponed_mount_error.Set(nfs_domain, status,
- "nfs_mount_async() failed");
+ postponed_mount_error.Format(nfs_domain, status,
+ "nfs_mount_async() failed: %s",
+ nfs_get_error(context));
return;
}
}