From f5db5279c2a47ff117371316c711860cd2a54aa9 Mon Sep 17 00:00:00 2001 From: sahlberg Date: Thu, 12 Dec 2024 16:22:53 +1100 Subject: [PATCH] Improve error string if nfs_mount fails in the rpc layer. Signed-off-by: sahlberg --- lib/libnfs-sync.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/libnfs-sync.c b/lib/libnfs-sync.c index 6eb07f9e..8fe031bc 100644 --- a/lib/libnfs-sync.c +++ b/lib/libnfs-sync.c @@ -365,6 +365,7 @@ nfs_mount(struct nfs_context *nfs, const char *server, const char *export) rpc_disconnect(nfs->rpc, "disconnect to try different dialect"); ret = _nfs_mount(nfs, server, export); } + nfs_set_error(nfs, rpc_get_error(nfs->rpc)); return ret; }