[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/kiwix 885a6c5 166/192: set kiwix-serve not started no r
From: |
Stefan Monnier |
Subject: |
[elpa] externals/kiwix 885a6c5 166/192: set kiwix-serve not started no response error handling |
Date: |
Sat, 19 Dec 2020 00:41:53 -0500 (EST) |
branch: externals/kiwix
commit 885a6c5bab610d2627b7d924760ad4412bf98ba7
Author: stardiviner <numbchild@gmail.com>
Commit: stardiviner <numbchild@gmail.com>
set kiwix-serve not started no response error handling
---
kiwix.el | 14 +++++++++-----
1 file changed, 9 insertions(+), 5 deletions(-)
diff --git a/kiwix.el b/kiwix.el
index 0efe368..f4ed9f5 100644
--- a/kiwix.el
+++ b/kiwix.el
@@ -220,11 +220,15 @@ Like in function `kiwix-ajax-search-hints'.")
:type "GET"
:sync t
:parser (lambda () (libxml-parse-html-region (point-min) (point-max)))
- :error (cl-function (lambda (&rest args &key error-thrown
&allow-other-keys)
- (setq kiwix-server-available? nil)
- (warn "kiwix.el ping server error: %S"
error-thrown)))
- :success (cl-function (lambda (&key data &allow-other-keys)
- (setq kiwix-server-available? t)))
+ :error (cl-function
+ (lambda (&rest args &key error-thrown &allow-other-keys)
+ (setq kiwix-server-available? nil)
+ (when (string-equal (cdr (request-response-error-thrown
kiwix-response))
+ "exited abnormally with code 7\n")
+ (warn "kiwix.el failed to connect to host. exited abnormally
with status code: 7."))))
+ :success (cl-function
+ (lambda (&key data &allow-other-keys)
+ (setq kiwix-server-available? t)))
:status-code '((404 . (lambda (&rest _) (message (format "Endpoint %s
does not exist." url))))
(500 . (lambda (&rest _) (message (format "Error from
%s." url))))))))
- [elpa] externals/kiwix 183b133 114/192: update usage comments, (continued)
- [elpa] externals/kiwix 183b133 114/192: update usage comments, Stefan Monnier, 2020/12/19
- [elpa] externals/kiwix 658038e 113/192: fix kiwix libraries data structure duplicate when re-evaluate., Stefan Monnier, 2020/12/19
- [elpa] externals/kiwix 30559cc 116/192: add option for specifying default library, Stefan Monnier, 2020/12/19
- [elpa] externals/kiwix efcfd99 117/192: fix default libraries directory, Stefan Monnier, 2020/12/19
- [elpa] externals/kiwix 39b96cb 119/192: let kiwix-launch-server support start Docker container, Stefan Monnier, 2020/12/19
- [elpa] externals/kiwix 4b093e0 128/192: add autoload cookies for some necessary functions, Stefan Monnier, 2020/12/19
- [elpa] externals/kiwix c662f3d 129/192: roll the version to release, Stefan Monnier, 2020/12/19
- [elpa] externals/kiwix 5fbf5bc 141/192: use symbol under point or region text as initial input for Ivy, Stefan Monnier, 2020/12/19
- [elpa] externals/kiwix d4d5ee0 149/192: Add an option for user to specify default browse-url function., Stefan Monnier, 2020/12/19
- [elpa] externals/kiwix ca3f70b 150/192: fix URL construct part missing slash., Stefan Monnier, 2020/12/19
- [elpa] externals/kiwix 885a6c5 166/192: set kiwix-serve not started no response error handling,
Stefan Monnier <=
- [elpa] externals/kiwix 33e8cbb 106/192: fix functions docstring., Stefan Monnier, 2020/12/19
- [elpa] externals/kiwix aea0901 125/192: simplify Org kiwix link select library logic, Stefan Monnier, 2020/12/19
- [elpa] externals/kiwix 878b02b 131/192: remove autoload cookies for Org link commands, Stefan Monnier, 2020/12/19
- [elpa] externals/kiwix 1861f27 134/192: replace simple url-retrieve-synchronously with library request.el, Stefan Monnier, 2020/12/19
- [elpa] externals/kiwix 8d5e53c 138/192: add query string related wikipedia entries through kiwix AJAX instantly search, Stefan Monnier, 2020/12/19
- [elpa] externals/kiwix 87c1246 139/192: simplify kiwix read input, Stefan Monnier, 2020/12/19
- [elpa] externals/kiwix cc6a8df 140/192: implement instantly async completion backend with Ivy, Stefan Monnier, 2020/12/19
- [elpa] externals/kiwix b185775 143/192: fix hardcoded `kiwix-ajax-search-hints` API URL, Stefan Monnier, 2020/12/19
- [elpa] externals/kiwix 32ad2cb 148/192: update Org Mode name, Stefan Monnier, 2020/12/19
- [elpa] externals/kiwix d2065a1 152/192: fix default browse-url variable name, Stefan Monnier, 2020/12/19