commit 4954a4f2cffe5c459727bee30cd221c59eacd839
parent 83091cc187dabb442b1246ac9772d9f3bedef48f
Author: Iqbal Ansari <iqbalansari02@yahoo.com>
Date: Tue, 2 Apr 2019 09:23:31 +0530
Improve the message displayed for partial downloads
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/emojify.el b/emojify.el
@@ -1395,7 +1395,7 @@ non-interactive mode and `emojify-download-emojis-p' is set to `ask'."
(secure-hash 'sha256 (current-buffer)))))
(if (string= downloaded-sha (ht-get data "sha256"))
destination
- (error "cannot download from \"%s\" as %s != %s"
+ (error "Failed to download emojis from \"%s\", hash does not match %s (expected %s)"
(ht-get data "url") downloaded-sha (ht-get data "sha256"))))))
(defun emojify--extract-emojis (file)