 
       group.fetchUserRoles [ jAccount.getId() ], (err, roles) =>
 
-        return @handleError button  if err
+        return @handleError button, err  if err
 
         data        = @getData()
         data.roles  = (role.as for role in roles)

    @createSettingsView()


  handleError: (button, message) ->

    button.hideLoader()
    message or= 'Failed to change user role. Please try again.'
    return new KDNotificationView title: message, duration: 5000




    kd.singletons.groupsController.getCurrentGroup().kickMember @getData().getId(), (err) =>

      return @handleError @actionButtons.kick, new Error 'Failed to kick user. Please try again.'  if err

      @destroy()

