[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/webpaste c6eb2a1 031/298: Add error callbacks to try to pa
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/webpaste c6eb2a1 031/298: Add error callbacks to try to paste again (to |
Date: |
Thu, 9 Dec 2021 18:59:38 -0500 (EST) |
branch: elpa/webpaste
commit c6eb2a1278305f96cc02cff661ee8a8fb449fff6
Author: Elis Axelsson <elis.axelsson@gmail.com>
Commit: Elis Axelsson <elis.axelsson@gmail.com>
Add error callbacks to try to paste again (to
another service)
---
webpaste.el | 12 ++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-)
diff --git a/webpaste.el b/webpaste.el
index 7cd34e3..35f602a 100644
--- a/webpaste.el
+++ b/webpaste.el
@@ -66,7 +66,11 @@ each run.")
:parser 'buffer-string
:success (function* (lambda (&key data &allow-other-keys)
(when data
- (webpaste-return-url data))))))
+ (webpaste-return-url data))))
+ :error
+ (function* (lambda (&key error-thrown &allow-other-keys&rest
_)
+ (message "Got error: %S" error-thrown)
+ (webpaste-paste-text text)))))
nil))
("dpaste.com" .
(lambda (text)
@@ -89,7 +93,11 @@ each run.")
:success
(function* (lambda (&key response &allow-other-keys)
(webpaste-return-url
- (request-response-header response
"Location"))))))
+ (request-response-header response
"Location"))))
+ :error
+ (function* (lambda (&key error-thrown &allow-other-keys&rest
_)
+ (message "Got error: %S" error-thrown)
+ (webpaste-paste-text text)))))
nil)))
"Define all webpaste.el providers.
Consists of provider name and lambda function to do the actuall call to the
- [nongnu] elpa/webpaste e1b98bd 032/298: Updated readme, (continued)
- [nongnu] elpa/webpaste e1b98bd 032/298: Updated readme, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste 25f0b32 033/298: More documentation for webpaste-paste-text function, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste 4fb8873 037/298: Changed emacs version requires from 25 to 24, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste d4357d7 042/298: Autoload excursion-wrapper as well, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste e579ecb 044/298: Specify parent group, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste aaa690a 016/298: Spelling in comments, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste c298428 043/298: Reset tested-providers list after successful paste, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste ddfe2c6 015/298: Added dpaste support, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste 9632f3f 026/298: Lines, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste 7b0859f 029/298: Populate tested providers list, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste c6eb2a1 031/298: Add error callbacks to try to paste again (to,
ELPA Syncer <=
- [nongnu] elpa/webpaste e354e30 034/298: Update commentary, package-version, keywords and readme, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste ac1f772 035/298: Commentary style, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste b2bd161 036/298: Changed keywords for package to match guidelines, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste 81d3f9b 038/298: Namespace wrapper for save-mark-and-excursion, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste ba59c4e 039/298: Added comment for checkdock prettyness, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste 4459071 040/298: Added description to group, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste 6fc4065 041/298: Added install instructions and melpa images, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste c6ea45c 045/298: Specify type attribute of custom variable, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste 4b9dfa9 049/298: Use cl-lib macros instead of cl.el, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste b8eb0ad 052/298: Change while to dolist, ELPA Syncer, 2021/12/09