From 25c31ce218be14fe59f79c03d8dd14254d412c1a Mon Sep 17 00:00:00 2001 From: Joachim Wiberg Date: Tue, 13 Feb 2024 14:20:03 +0100 Subject: [PATCH] src/klish-plugin-infix: improve log message on failed copy Signed-off-by: Joachim Wiberg --- src/klish-plugin-infix/src/infix.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/klish-plugin-infix/src/infix.c b/src/klish-plugin-infix/src/infix.c index 3a5424d8..54f1c60a 100644 --- a/src/klish-plugin-infix/src/infix.c +++ b/src/klish-plugin-infix/src/infix.c @@ -433,7 +433,8 @@ int infix_copy(kcontext_t *ctx) } else { rc = sr_copy_config(sess, NULL, srcds->datastore, 0); if (rc) - emsg(sess, ERRMSG "unable to copy configuration (%d)\n", rc); + emsg(sess, ERRMSG "unable to copy configuration, err %d: %s\n", + rc, sr_strerror(rc)); } rc = sr_disconnect(conn);