bok-choy: Additional detail to assist when a course fixture error surfaces.

When receiving an error explained in TNL-3942, I found this kind of
instrumentation to be helpful.
This commit is contained in:
Ben Patterson
2015-12-20 09:19:53 -05:00
parent 6d5047ef12
commit bf8a30d71b

View File

@@ -298,8 +298,8 @@ class CourseFixture(XBlockContainerFixture):
self._course_key = response.json()['course_key']
else:
raise FixtureError(
"Could not create course {0}. Status was {1}".format(
self._course_dict, response.status_code))
"Could not create course {0}. Status was {1}\nResponse content was: {2}".format(
self._course_dict, response.status_code, response.content))
def _configure_course(self):
"""