From: Simon Tatham Date: Sun, 13 Oct 2024 09:52:47 +0000 (+0100) Subject: editor: better error message on paste failure. X-Git-Tag: debian/002.008-2~1^2~3 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~bjharris/git?a=commitdiff_plain;h=67290ddd011aee50ae9530477295a95cb23819df;p=bedstead-debian.git 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. --- 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):]