branch: elpa/fedi
commit 67b61b091774e3dc83a8a8bbca16d7179d9c1fb3
Author: marty hiatt <[email protected]>
Commit: marty hiatt <[email protected]>
http: amend render-html-err
---
fedi-http.el | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/fedi-http.el b/fedi-http.el
index 8afd4de1b4a..e0f155f580c 100644
--- a/fedi-http.el
+++ b/fedi-http.el
@@ -81,13 +81,12 @@ A random one is picked at package initialization.")
(defun fedi-http--render-html-err (string)
"Render STRING as HTML in a temp buffer.
-STRING should be HTML for a 404 errror."
+STRING should be HTML for a 404 or 429 etc. errror."
(with-temp-buffer
(insert string)
(shr-render-buffer (current-buffer))
- (view-mode))) ; for 'q' to kill buffer and window
-;; FIXME: this is awful, it pops up also:
-;; (error ""))) ; stop subsequent processing
+ (view-mode) ;; for 'q' to kill buffer and window
+ (user-error "HTML response")))
(defun fedi-http--read-file-as-string (filename)
"Read a file FILENAME as a string. Used to generate image preview."