aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyle Meyer <kyle@kyleam.com>2021-05-23 17:46:23 -0400
committerKyle Meyer <kyle@kyleam.com>2021-05-23 17:47:53 -0400
commit3cf9a8213ff78b9226dba0ad0c045c7de41f3c96 (patch)
tree283a9180a814c1c626e3256bf6c284ec2b1c6898
parent296cfaebf706e9eedb4106f1e3d0e0d810e0043c (diff)
downloadpiem-3cf9a8213ff78b9226dba0ad0c045c7de41f3c96.tar.gz
piem-gunzip-buffer: Don't assume t.mbox.gz is being decompressed
If the gunzip call fails, piem-gunzip-buffer says "Decompressing t.mbox.gz failed". All the piem-gunzip-buffer callers at the moment do use to decompress t.mbox.gz downloads, but that's of course not something this function should assume or know about. Message-Id: <20210523214623.31331-6-kyle@kyleam.com>
-rw-r--r--piem.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/piem.el b/piem.el
index b4304d1..0b3d744 100644
--- a/piem.el
+++ b/piem.el
@@ -536,7 +536,7 @@ is used as the value of `browse-url-browser-function'."
(user-error "gunzip executable not found"))
(goto-char (point-min))
(unless (= 0 (call-process-region nil nil "gunzip" nil t))
- (error "Decompressing t.mbox.gz failed"))
+ (error "Decompressing buffer failed"))
(delete-region (point) (point-max))
(goto-char (point-min)))