From 869261ae812723c0c6549202734a4135c3474ec1 Mon Sep 17 00:00:00 2001 From: Bob Weiner Date: Sat, 9 Dec 2017 23:13:43 -0500 Subject: [PATCH] Display actual character that triggered an error Fixes #227 --- avy.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/avy.el b/avy.el index 1eef9c5..8d61c79 100644 --- a/avy.el +++ b/avy.el @@ -427,7 +427,8 @@ KEYS is the path from the root of `avy-tree' to LEAF." ((mouse-event-p char) (signal 'user-error (list "Mouse event not handled" char))) (t - (signal 'user-error (list "No such candidate" char)) + (signal 'user-error (list "No such candidate" + (if (characterp char) (string char) char))) (throw 'done nil))))) (defvar avy-handler-function 'avy-handler-default