From 91c5803f3f3db99a0effc130f6e2f7c297d5d837 Mon Sep 17 00:00:00 2001 From: Ben Jeffery Date: Fri, 22 Nov 2024 14:52:57 +0000 Subject: [PATCH] Improve no-edge-metadata error --- c/tskit/core.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/c/tskit/core.c b/c/tskit/core.c index a63cfad287..9ba44ba2d0 100644 --- a/c/tskit/core.c +++ b/c/tskit/core.c @@ -277,7 +277,10 @@ tsk_strerror_internal(int err) break; case TSK_ERR_CANT_PROCESS_EDGES_WITH_METADATA: ret = "Can't squash, flush, simplify or link ancestors with edges that have " - "non-empty metadata. (TSK_ERR_CANT_PROCESS_EDGES_WITH_METADATA)"; + "non-empty metadata. Removing the metadata from the edges will allow " + "simplification to proceed. For example using " + "tables.edges.drop_metadata() in the tskit Python API. " + "(TSK_ERR_CANT_PROCESS_EDGES_WITH_METADATA)"; break; /* Site errors */