src/klish-plugin-infix: improve log message on failed copy

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
Joachim Wiberg
2024-02-25 19:49:27 +01:00
parent bcdd311cb8
commit 25c31ce218
+2 -1
View File
@@ -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);