[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] scratch/with-url 1af8637 2/5: Make network errors prettier
From: |
Lars Ingebrigtsen |
Subject: |
[Emacs-diffs] scratch/with-url 1af8637 2/5: Make network errors prettier |
Date: |
Sun, 22 Jan 2017 17:29:58 +0000 (UTC) |
branch: scratch/with-url
commit 1af8637318e50e741bc58b2d073db5195f7ddbf7
Author: Lars Ingebrigtsen <address@hidden>
Commit: Lars Ingebrigtsen <address@hidden>
Make network errors prettier
---
lisp/url/with-url.el | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/lisp/url/with-url.el b/lisp/url/with-url.el
index e3b1213..a086074 100644
--- a/lisp/url/with-url.el
+++ b/lisp/url/with-url.el
@@ -370,7 +370,9 @@ If given, return the value in BUFFER instead."
;; connection ourselves.
)
(_ (with-url--callback
- process (list 500 (format "Network error: %s" change)) req)))))
+ process (list 500 (format "Network error: %s"
+ (replace-regexp-in-string "\n" "" change)))
+ req)))))
(defun with-url--unexpected-early-close ()
(goto-char (point-min))