mirror of
https://github.com/zedeus/nitter.git
synced 2025-12-07 20:45:36 -05:00
Improve search and list error messages
This commit is contained in:
@@ -9,8 +9,8 @@ import ../views/[general, timeline, list]
|
||||
export getListTimeline, getGraphList
|
||||
|
||||
template respList*(list, timeline, title, vnode: typed) =
|
||||
if list.id.len == 0:
|
||||
resp Http404, showError("List \"" & @"id" & "\" not found", cfg)
|
||||
if list.id.len == 0 or list.name.len == 0:
|
||||
resp Http404, showError("List " & @"id" & " not found", cfg)
|
||||
|
||||
let
|
||||
html = renderList(vnode, timeline.query, list)
|
||||
|
||||
Reference in New Issue
Block a user