1
0
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:
Zed
2021-12-30 23:47:31 +01:00
parent b8a3ffb0c4
commit 1ce6ff2b2f
2 changed files with 19 additions and 13 deletions

View File

@@ -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)