diff options
| author | Lars Ingebrigtsen | 2022-04-13 01:38:10 +0200 |
|---|---|---|
| committer | Lars Ingebrigtsen | 2022-04-13 01:38:10 +0200 |
| commit | 95c9079da0208e0b1506ed19bb6db811d4ea4d84 (patch) | |
| tree | 553e239573741e90d005d68db86bad80f1c051e0 /src | |
| parent | 1cdb8d4c99bf82579dd180187a11f2bcbeccd4c4 (diff) | |
| download | emacs-95c9079da0208e0b1506ed19bb6db811d4ea4d84.tar.gz emacs-95c9079da0208e0b1506ed19bb6db811d4ea4d84.zip | |
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.
Diffstat (limited to 'src')
| -rw-r--r-- | src/image.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/image.c b/src/image.c index 45de7ae83d3..e4b56e29cff 100644 --- a/src/image.c +++ b/src/image.c | |||
| @@ -11316,7 +11316,7 @@ svg_load_image (struct frame *f, struct image *img, char *contents, | |||
| 11316 | #endif | 11316 | #endif |
| 11317 | /* FIXME: Use error->message so the user knows what is the actual | 11317 | /* FIXME: Use error->message so the user knows what is the actual |
| 11318 | problem with the image. */ | 11318 | problem with the image. */ |
| 11319 | image_error ("Error parsing SVG image `%s'", img->spec); | 11319 | image_error ("Error parsing SVG image"); |
| 11320 | g_clear_error (&err); | 11320 | g_clear_error (&err); |
| 11321 | return 0; | 11321 | return 0; |
| 11322 | } | 11322 | } |