Subject: bug#50149: [PATCH] Don't echo empty string

From: "Colin Woodbury" <[email-masked]>
Date: Sat, 21 Aug 2021 08:28:45 -0700

This fixes an oversight from my last patch. Thanks!

From 8fd60db517739df38d47dd656219b910c2251418 Mon Sep 17 00:00:00 2001
From: Colin Woodbury <[email-masked]>
Date: Sat, 21 Aug 2021 08:23:18 -0700
Subject: [PATCH] Don't echo empty string

* lisp/files.el (file-name-with-extension): Avoid echoing a filename
string known to be empty.
---
 lisp/files.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/files.el b/lisp/files.el
index f0baa4fac6..ba362827ee 100644
--- a/lisp/files.el
+++ b/lisp/files.el
@@ -5033,7 +5033,7 @@ FILENAME has the format of a directory.
 See also `file-name-sans-extension'."
   (let ((extn (string-trim-left extension "[.]")))
     (cond ((string-empty-p filename)
-           (error "Empty filename: %s" filename))
+           (error "Empty filename"))
           ((string-empty-p extn)
            (error "Malformed extension: %s" extension))
           ((directory-name-p filename)
-- 
2.33.0