Skip to content

Commit

Permalink
more descriptive error message
Browse files Browse the repository at this point in the history
closes #12
  • Loading branch information
hayamiz committed Jan 2, 2010
1 parent 2395baf commit 272aafd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions ChangeLog
Expand Up @@ -2,6 +2,7 @@

* twittering-mode.el (twittering-tinyurl-get): more descriptive
error message
(twittering-url-copy-file-async): more descriptive error message

2010-01-02 Satoshi Yatagawa <yata_github@y.hauN.org>

Expand Down
7 changes: 4 additions & 3 deletions twittering-mode.el
Expand Up @@ -1635,9 +1635,10 @@ following symbols;
(let ((coding-system-for-write 'binary)
(require-final-newline nil))
(goto-char (point-min))
(search-forward-regexp "^$")
(write-region (1+ (point)) (point-max) ,file)
(kill-buffer (current-buffer))))))
(if (search-forward-regexp "^$" nil t)
(progn (write-region (1+ (point)) (point-max) ,file)
(kill-buffer (current-buffer)))
(error (format "Failed to get image file: %s" url)))))))

(defun twittering-retrieve-image-without-wget (image-urls)
(mapc
Expand Down

0 comments on commit 272aafd

Please sign in to comment.