]> git.eshelyaron.com Git - emacs.git/commitdiff
Make the SVG error message less verbose
authorLars Ingebrigtsen <larsi@gnus.org>
Tue, 12 Apr 2022 23:38:10 +0000 (01:38 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Tue, 12 Apr 2022 23:38:10 +0000 (01:38 +0200)
* 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

index 45de7ae83d37abf050157ae260aa4e0ec12fa257..e4b56e29cff2d104e8fc828de2d4e192662fad90 100644 (file)
@@ -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;
 }