tools: ynl: use strerror() if no extack of note provided
authorJakub Kicinski <kuba@kernel.org>
Sat, 2 Dec 2023 21:13:10 +0000 (13:13 -0800)
committerJakub Kicinski <kuba@kernel.org>
Wed, 6 Dec 2023 04:08:13 +0000 (20:08 -0800)
commitf2d4d9ad809a1c7173ce66c47cd45e11184a554c
tree4b3cba76ae42db42ec8077c86e0eade51ecb8e89
parente136735f0c263b8bb9572ff8d35d8d5bc9fd9b66
tools: ynl: use strerror() if no extack of note provided

If kernel didn't give use any meaningful error - print
a strerror() to the ynl error message.

Reviewed-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Link: https://lore.kernel.org/r/20231202211310.342716-1-kuba@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/net/ynl/lib/ynl.c