Give a better error message when capa recieves an unknown action

This commit is contained in:
Calen Pennington
2013-10-22 10:28:59 -04:00
parent 10ee2dea82
commit ae32abfd62

View File

@@ -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()