From 10d5a1ea2ded21623d1abcb6a955f5098faad334 Mon Sep 17 00:00:00 2001 From: Jaakko Keränen Date: Sun, 6 Dec 2020 14:23:15 +0200 Subject: Report errors in MIME hooks; added to about:debug --- src/app.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'src/app.c') diff --git a/src/app.c b/src/app.c index ba7d41d2..da6a343f 100644 --- a/src/app.c +++ b/src/app.c @@ -502,6 +502,8 @@ const iString *debugInfo_App(void) { iConstForEach(StringList, j, d->launchCommands) { appendFormat_String(msg, "%s\n", cstr_String(j.value)); } + appendFormat_String(msg, "## MIME hooks\n"); + append_String(msg, debugInfo_MimeHooks(d->mimehooks)); return msg; } @@ -1034,7 +1036,13 @@ iBool willUseProxy_App(const iRangecc scheme) { iBool handleCommand_App(const char *cmd) { iApp *d = &app_; - if (equal_Command(cmd, "prefs.dialogtab")) { + if (equal_Command(cmd, "config.error")) { + makeMessage_Widget(uiTextCaution_ColorEscape "CONFIG ERROR", + format_CStr("Error in config file: %s\nSee \"about:debug\" for details.", + suffixPtr_Command(cmd, "where"))); + return iTrue; + } + else if (equal_Command(cmd, "prefs.dialogtab")) { d->prefs.dialogTab = arg_Command(cmd); return iTrue; } -- cgit v1.2.3