           console.log 'Received wizard index'
           res data
       .fail (obj, status) ->
-        console.log 'Error: ' + obj.responseJSON.message
+        console.error 'Error: ' + getErrorMessage(obj)
         rej obj
 
   fetchRevisions: (studentId, courseId) ->

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

  createAssignment: (opts) ->

          console.log 'Received cohorts'
          res data
      .fail (obj, status) ->
        console.error 'Error: ' + getErrorMessage(obj)
        rej obj

  fetchWizardPanels: (wizard_id) ->
