           console.log 'Received training module'
           res data
       .fail (obj, status) ->
-        console.log 'Error: ' + obj.responseJSON.message
+        console.error 'Error: ' + getErrorMessage(obj)
         rej obj
 
   setSlideCompleted: (opts) ->

          console.log 'Deleted assignment'
          res data
      .fail (obj, status) ->
        console.log 'Error: ' + obj.responseJSON.message
        rej obj

  createAssignment: (opts) ->

          console.log 'Submitted the wizard answers!'
          res data
      .fail (obj, status) ->
        console.error 'Couldn\'t submit wizard answers! ' + getErrorMessage(obj)
        rej obj

  modify: (model, course_id, data, add) ->
