emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master 95c9079da0: Make the SVG error message less verbose


From: Lars Ingebrigtsen
Subject: master 95c9079da0: Make the SVG error message less verbose
Date: Tue, 12 Apr 2022 19:52:02 -0400 (EDT)

branch: master
commit 95c9079da0208e0b1506ed19bb6db811d4ea4d84
Author: Lars Ingebrigtsen <larsi@gnus.org>
Commit: Lars Ingebrigtsen <larsi@gnus.org>

    Make the SVG error message less verbose
    
    * src/image.c (svg_load_image): Don't include the spec in the
    error message, because this is commonly the entire SVG string, and
    this will fill up the *Messages* buffer quickly.
---
 src/image.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/image.c b/src/image.c
index 45de7ae83d..e4b56e29cf 100644
--- a/src/image.c
+++ b/src/image.c
@@ -11316,7 +11316,7 @@ svg_load_image (struct frame *f, struct image *img, 
char *contents,
 #endif
   /* FIXME: Use error->message so the user knows what is the actual
      problem with the image.  */
-  image_error ("Error parsing SVG image `%s'", img->spec);
+  image_error ("Error parsing SVG image");
   g_clear_error (&err);
   return 0;
 }



reply via email to

[Prev in Thread] Current Thread [Next in Thread]