Commit bf8a30d7 by Ben Patterson

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.
parent 6d5047ef
......@@ -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):
"""
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment