Skip to content
Snippets Groups Projects
Commit cbe7aea4 authored by echicken's avatar echicken :chicken:
Browse files

Moved stuff around to log a warning instead of an error if client browses a non-existent thread.

parent 38365fd5
No related branches found
No related tags found
No related merge requests found
...@@ -387,9 +387,6 @@ if (typeof http_request.query.sub !== 'undefined' && ...@@ -387,9 +387,6 @@ if (typeof http_request.query.sub !== 'undefined' &&
msg_area.sub[http_request.query.sub[0]].scan_ptr = msg_area.sub[http_request.query.sub[0]].scan_ptr =
thread.messages[thread.__last].number; thread.messages[thread.__last].number;
} }
} catch (err) {
log(LOG_WARNING, err);
}
writeln(strings.script.open); writeln(strings.script.open);
if (settings.keyboard_navigation) writeln(strings.script.thread_navigation); if (settings.keyboard_navigation) writeln(strings.script.thread_navigation);
...@@ -418,6 +415,10 @@ if (typeof http_request.query.sub !== 'undefined' && ...@@ -418,6 +415,10 @@ if (typeof http_request.query.sub !== 'undefined' &&
} }
writeln(strings.script.close); writeln(strings.script.close);
} catch (err) {
log(LOG_WARNING, err);
}
} else if ( } else if (
typeof http_request.query.sub !== 'undefined' && typeof http_request.query.sub !== 'undefined' &&
typeof msg_area.sub[http_request.query.sub[0]] !== 'undefined' && typeof msg_area.sub[http_request.query.sub[0]] !== 'undefined' &&
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment