[qwaq] Catch adding bad messages to listeners

Better an informative error than a "null function" error.
This commit is contained in:
Bill Currie 2020-03-30 22:51:18 +09:00
parent 1a34f3663a
commit 2e1bddb94c

View file

@ -18,6 +18,9 @@
self.responder = responder;
self.message = message;
imp = [responder methodForSelector: message];
if (!imp) {
[self error:"method not found: %s", sel_get_name (message)];
}
return self;
}