mirror of
https://github.com/zedeus/nitter
synced 2026-09-05 22:59:31 +00:00
Improve search and list error messages
This commit is contained in:
parent
b8a3ffb0c4
commit
1ce6ff2b2f
2 changed files with 19 additions and 13 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue