Function: ghub--signal-error
ghub--signal-error is a byte-compiled function defined in ghub.el.
Signature
(ghub--signal-error ERR &optional PAYLOAD REQ)
Source Code
;; Defined in ~/.emacs.d/elpa/ghub-20260401.1239/ghub.el
(defun ghub--signal-error (err &optional payload req)
(pcase-let ((`(,symb . ,data) err))
(if (eq symb 'error)
(if (eq (car-safe data) 'http)
(signal 'ghub-http-error
(let ((code (car (cdr-safe data))))
(list code
(nth 2 (assq code url-http-codes))
(and req (url-recreate-url (ghub--req-url req)))
payload)))
(signal 'ghub-error data))
(signal symb data))))