From ae32abfd62fa079dd726f7a95378a64a9ec0af8a Mon Sep 17 00:00:00 2001 From: Calen Pennington Date: Tue, 22 Oct 2013 10:28:59 -0400 Subject: [PATCH] Give a better error message when capa recieves an unknown action --- common/lib/xmodule/xmodule/capa_module.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/lib/xmodule/xmodule/capa_module.py b/common/lib/xmodule/xmodule/capa_module.py index 0034e9d899..586464b058 100644 --- a/common/lib/xmodule/xmodule/capa_module.py +++ b/common/lib/xmodule/xmodule/capa_module.py @@ -597,7 +597,7 @@ class CapaModule(CapaFields, XModule): ) if dispatch not in handlers: - return 'Error' + return 'Error: {} is not a known capa action'.format(dispatch) before = self.get_progress()