aboutsummaryrefslogtreecommitdiff
path: root/lisp/mastodon-http.el
diff options
context:
space:
mode:
authormousebot <mousebot@riseup.net>2021-05-26 21:15:38 +0200
committermousebot <mousebot@riseup.net>2021-05-26 21:15:38 +0200
commit225c0b4acf12cae8593035a1e1662586ec8c74a8 (patch)
tree354f946ac763be26f1f7ce2a888067006195185c /lisp/mastodon-http.el
parente86aaaefe20e5ff3036751b91f4f8fec4aaf5394 (diff)
flychecks and autoloads
Diffstat (limited to 'lisp/mastodon-http.el')
-rw-r--r--lisp/mastodon-http.el7
1 files changed, 4 insertions, 3 deletions
diff --git a/lisp/mastodon-http.el b/lisp/mastodon-http.el
index 8298cec..8a7499f 100644
--- a/lisp/mastodon-http.el
+++ b/lisp/mastodon-http.el
@@ -31,6 +31,7 @@
(require 'json)
(require 'request) ; for attachments upload
+
(defvar mastodon-instance-url)
(autoload 'mastodon-auth--access-token "mastodon-auth")
@@ -209,10 +210,10 @@ The upload is asynchronous. On succeeding, `mastodon-toot--media-attachment-ids'
(200
(request-response-data response))
(401
- (error "Unauthorized: The access token is invalid."))
+ (error "Unauthorized: The access token is invalid"))
(422
- (error "Unprocessable entity: file or file type is unsupported or invalid."))
- (_ (error "Shit went south.")))))
+ (error "Unprocessable entity: file or file type is unsupported or invalid"))
+ (_ (error "Shit went south")))))
(provide 'mastodon-http)
;;; mastodon-http.el ends here