Skip to content

Commit

Permalink
'twittering-get-response-{header,body}()' show a message on failure.
Browse files Browse the repository at this point in the history
  • Loading branch information
cvmat authored and hayamiz committed Dec 30, 2009
1 parent 70fe5df commit 201dd61
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions twittering-mode.el
Expand Up @@ -1138,6 +1138,7 @@ PARAMETERS is alist of URI parameters.
(delete-region (point-min) (point)))
(if (search-forward-regexp "\r?\n\r?\n" nil t)
(buffer-substring (point-min) (match-end 0))
(message "Failure: invalid HTTP response.")
"")))

(defun twittering-get-response-body (buffer)
Expand All @@ -1154,6 +1155,7 @@ XML tree as list. Return nil when parse failed.
(xml-parse-region start (point-max))
(error (message "Failure: %s" get-error)
nil)))
(message "Failure: invalid HTTP response.")
nil)
))

Expand Down

0 comments on commit 201dd61

Please sign in to comment.