summaryrefslogtreecommitdiff
path: root/lib9p/9p.c
diff options
context:
space:
mode:
authorLuke T. Shumaker <lukeshu@lukeshu.com>2024-10-04 19:38:42 -0600
committerLuke T. Shumaker <lukeshu@lukeshu.com>2024-10-04 19:38:42 -0600
commit4f7cf6b416ccede492ace64533ab35a9a289f463 (patch)
treedb28d138f8b6d4c9bf71f2790881ea04f68b3ece /lib9p/9p.c
parent860a9e995b8e7076ce4e5c231e844184bef9b95e (diff)
wip
Diffstat (limited to 'lib9p/9p.c')
-rw-r--r--lib9p/9p.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib9p/9p.c b/lib9p/9p.c
index 0ab940c..8633a44 100644
--- a/lib9p/9p.c
+++ b/lib9p/9p.c
@@ -52,8 +52,8 @@ ssize_t lib9p_validate(struct lib9p_ctx *ctx, uint8_t *net_bytes) {
/* Body */
struct _vtable_msg vtable = _lib9p_vtables[ctx->version].msgs[typ];
if (!vtable.validate)
- return lib9p_errorf(ctx, LINUX_EOPNOTSUPP, "unknown message type %s",
- lib9p_msg_type_str(typ));
+ return lib9p_errorf(ctx, LINUX_EOPNOTSUPP, "unknown message type: %s (protocol_version=%s)",
+ lib9p_msg_type_str(typ), lib9p_version_str(ctx->version));
if (vtable.validate(&subctx))
return -1;
assert(subctx.net_offset <= subctx.net_size);