From 01fb47f88045ab0a612a27f4a0913ab22b804a67 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 25 Sep 2016 18:18:39 +0530 Subject: [PATCH] Show a nice error message when developing a widget with no develop() method --- src/pyj/book_list/ui.pyj | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/pyj/book_list/ui.pyj b/src/pyj/book_list/ui.pyj index bb2a067219..acb1de37d9 100644 --- a/src/pyj/book_list/ui.pyj +++ b/src/pyj/book_list/ui.pyj @@ -116,6 +116,8 @@ class DevelopPanel: m = get_module(m) if m?.develop: m.develop(self.container) + else: + self.container.textContent = 'The module {} either does not exist or has no develop method.'.format(q.widget_module) class UI: