diff --git a/common/events.c b/common/events.c index 304b10fe..28ce8c77 100644 --- a/common/events.c +++ b/common/events.c @@ -145,7 +145,7 @@ static struct handler *findHandler(const uiEvent *e, int id, const char *func) key.id = id; ret = (struct handler *) uiprivArrayBsearch(&(e->handlers), &key, handlerCmp); if (ret == NULL) - uiprivProgrammerErrorIntIDNotFound("uiEvent handler", id, func); + uiprivProgrammerErrorEventHandlerNotFound(id, func); return ret; } diff --git a/common/programmererrors.h b/common/programmererrors.h index b6f1e137..a083feb6 100644 --- a/common/programmererrors.h +++ b/common/programmererrors.h @@ -26,9 +26,9 @@ // events { -#define uiprivProgrammerErrorIntIDNotFound(idDesc, badID, func) \ - uiprivProgrammerError("%s identifier %d not found in %s()", \ - idDesc, badID, func) +#define uiprivProgrammerErrorEventHandlerNotFound(badID, func) \ + uiprivProgrammerError("event handler %d not found in %s()", \ + badID, func) #define uiprivProgrammerErrorBadSenderForEvent(senderDesc, eventDesc, func) \ uiprivProgrammerError("attempt to use a %s sender with a %s event in %s()", \