From: longpanda Date: Sat, 14 Jan 2023 15:07:08 +0000 (+0800) Subject: Add tip message when theme file contains non-enclosed literal values. (#2166) X-Git-Tag: v1.0.89~36 X-Git-Url: https://glassweightruler.freedombox.rocks/gitweb/Ventoy.git/commitdiff_plain/5067020a619b12c503857054be89731cbaf33098 Add tip message when theme file contains non-enclosed literal values. (#2166) --- diff --git a/GRUB2/MOD_SRC/grub-2.04/grub-core/gfxmenu/theme_loader.c b/GRUB2/MOD_SRC/grub-2.04/grub-core/gfxmenu/theme_loader.c index 5ff3d25..af90ce4 100644 --- a/GRUB2/MOD_SRC/grub-2.04/grub-core/gfxmenu/theme_loader.c +++ b/GRUB2/MOD_SRC/grub-2.04/grub-core/gfxmenu/theme_loader.c @@ -734,6 +734,11 @@ read_property (struct parsebuf *p) "%s:%d:%d property value invalid; " "enclose literal values in quotes (\")", p->filename, p->line_num, p->col_num); + + grub_printf("File: %s\nLine:%d Column:%d\n" + "property value invalid; enclose literal values in quotes (\")\n\n", + p->filename, p->line_num, p->col_num); + goto done; }