From 67290ddd011aee50ae9530477295a95cb23819df Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Sun, 13 Oct 2024 10:52:47 +0100 Subject: [PATCH] editor: better error message on paste failure. Apparently I was incredibly lazy at some point in the past and forgot to say what the problem was when the paste data couldn't be matched against the regex. --- editor | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/editor b/editor index 8ccb1cd..3415900 100755 --- a/editor +++ b/editor @@ -175,7 +175,8 @@ class EditorGui: for i in range(YSIZE): m = pat.search(s) if m is None: - print("gronk") + print("Unable to interpret selection data {!r} as a " + "Bedstead glyph description".format(s)) return bitmap.append(int(m.group(0), 8) & ((1 << XSIZE) - 1)) s = s[m.end(0):] -- 2.30.2