         type: "DELETE"
         url: laroute.route 'friends.destroy', friend: @props.user_id
         success: @updateFriends
-        error: osu.ajaxError
+        error: osu.emitAjaxError(@button)
         complete: @requestDone
     else
       #friending

      onMouseEnter: @hover
      onMouseLeave: @unhover
      onClick: @clicked
      title: if @state.friend then osu.trans('friends.buttons.remove') else osu.trans('friends.buttons.add')
      disabled: @state.loading
      if @state.loading

        type: "POST"
        url: laroute.route 'friends.store', target: @props.user_id
        success: @updateFriends
        error: osu.emitAjaxError(@button)
        complete: @requestDone


