         (lambda (result)
           (when result
             (if (assoc-default 'exception result)
-                (ycmd--handle-exception
-                 result exception-handler)
+                (ycmd--handle-exception result)
               (when success-handler
                 (funcall success-handler result)))))))))
 


(defun ycmd--goto (type)
  "Implementation of GoTo according to the request TYPE."
  (ycmd--send-request
   type 'ycmd--handle-goto-success 'ycmd--handle-goto-exception))

(defun ycmd--goto-location (location)
  "Move cursor to LOCATION.

     (-when-let (documentation (assoc-default 'detailed_info result))
       (with-help-window (get-buffer-create " *ycmd-documentation*")
         (with-current-buffer standard-output
           (insert documentation)))))))

(define-button-type 'ycmd--error-button
  'face '(error bold underline)
