summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--desktop/browser_window.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/desktop/browser_window.c b/desktop/browser_window.c
index f43e93e7d..a6b77b08b 100644
--- a/desktop/browser_window.c
+++ b/desktop/browser_window.c
@@ -1208,10 +1208,10 @@ browser_window__handle_error(struct browser_window *bw,
case NSERROR_BAD_REDIRECT:
/* The message is already filled out */
break;
- case NSERROR_UNKNOWN:
- message = messages_get_errorcode(code);
- break;
default:
+ if (message == NULL) {
+ message = messages_get_errorcode(code);
+ }
break;
}