Add ability for 404 page to show error description.
This commit is contained in:
부모
e3ae3a1ccb
커밋
74452fe58f
2개의 변경된 파일과 5개의 추가작업 그리고 2개의 파일을 삭제
|
|
@ -75,7 +75,7 @@ def history(name):
|
|||
more = True
|
||||
items.pop()
|
||||
if page > 1 and not items:
|
||||
abort(404)
|
||||
abort(404, 'Page is past end of history.')
|
||||
for item in items:
|
||||
item['gravatar'] = gravatar_url(item['author_email'])
|
||||
return render_template('wiki/history.html', name=name, history=items,
|
||||
|
|
|
|||
불러오는 중…
테이블 추가
Add a link
Reference in a new issue