nfs/Connection: use nfs_get_error() for mount error

This commit is contained in:
Max Kellermann 2014-08-31 17:44:35 +02:00
parent 8707aafaf7
commit fd8a53ca3d

View File

@ -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;
}
}