From 4779043a5f65fc5aebf6903b14b716e8b483451d Mon Sep 17 00:00:00 2001 From: Calen Pennington Date: Tue, 8 Jan 2013 11:54:12 -0500 Subject: [PATCH] Add message during 404 for debugging --- lms/djangoapps/courseware/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lms/djangoapps/courseware/views.py b/lms/djangoapps/courseware/views.py index 7ed0685704..8096aa0df4 100644 --- a/lms/djangoapps/courseware/views.py +++ b/lms/djangoapps/courseware/views.py @@ -133,7 +133,7 @@ def redirect_to_course_position(course_module, first_time): chapter = get_current_child(course_module) if chapter is None: # oops. Something bad has happened. - raise Http404 + raise Http404("No chapter found when loading current position in course") if not first_time: return redirect(reverse('courseware_chapter', kwargs={'course_id': course_id, 'chapter': chapter.url_name}))