diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-12-06 14:23:15 +0200 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-12-06 14:23:15 +0200 |
commit | 10d5a1ea2ded21623d1abcb6a955f5098faad334 (patch) | |
tree | 52e07514e38d466aa0cd42974a1e9a583a66b7a4 /src/app.c | |
parent | 6a565ea71745aaf4c91a7698bbf56f7d906fcaaa (diff) |
Report errors in MIME hooks; added to about:debug
Diffstat (limited to 'src/app.c')
-rw-r--r-- | src/app.c | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -502,6 +502,8 @@ const iString *debugInfo_App(void) { | |||
502 | iConstForEach(StringList, j, d->launchCommands) { | 502 | iConstForEach(StringList, j, d->launchCommands) { |
503 | appendFormat_String(msg, "%s\n", cstr_String(j.value)); | 503 | appendFormat_String(msg, "%s\n", cstr_String(j.value)); |
504 | } | 504 | } |
505 | appendFormat_String(msg, "## MIME hooks\n"); | ||
506 | append_String(msg, debugInfo_MimeHooks(d->mimehooks)); | ||
505 | return msg; | 507 | return msg; |
506 | } | 508 | } |
507 | 509 | ||
@@ -1034,7 +1036,13 @@ iBool willUseProxy_App(const iRangecc scheme) { | |||
1034 | 1036 | ||
1035 | iBool handleCommand_App(const char *cmd) { | 1037 | iBool handleCommand_App(const char *cmd) { |
1036 | iApp *d = &app_; | 1038 | iApp *d = &app_; |
1037 | if (equal_Command(cmd, "prefs.dialogtab")) { | 1039 | if (equal_Command(cmd, "config.error")) { |
1040 | makeMessage_Widget(uiTextCaution_ColorEscape "CONFIG ERROR", | ||
1041 | format_CStr("Error in config file: %s\nSee \"about:debug\" for details.", | ||
1042 | suffixPtr_Command(cmd, "where"))); | ||
1043 | return iTrue; | ||
1044 | } | ||
1045 | else if (equal_Command(cmd, "prefs.dialogtab")) { | ||
1038 | d->prefs.dialogTab = arg_Command(cmd); | 1046 | d->prefs.dialogTab = arg_Command(cmd); |
1039 | return iTrue; | 1047 | return iTrue; |
1040 | } | 1048 | } |