Function: ghub--graphql-handle-failure
ghub--graphql-handle-failure is a byte-compiled function defined in
ghub-graphql.el.
Signature
(ghub--graphql-handle-failure REQ ERRORS HEADERS STATUS)
Source Code
;; Defined in ~/.emacs.d/elpa/ghub-20260401.1239/ghub-graphql.el
(defun ghub--graphql-handle-failure (req errors headers status)
(ghub--graphql-set-mode-line req)
(setf (ghub--req-value req) errors)
(cond-let
([errorback (ghub--req-errorback req)]
(ghub--graphql-run-callback req errorback errors headers status req))
((ghub--req-noerror req)
(when-let ((callback (ghub--req-callback req)))
(ghub--graphql-run-callback req callback errors)))
((ghub--signal-error (if (eq (car errors) 'errors)
(cons 'ghub-graphql-error (cdr errors))
errors)))))