Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
rc
self-reg-form
Commits
7843fd76
Commit
7843fd76
authored
Feb 26, 2021
by
root
Browse files
add error page
parent
33535540
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/__init__.py
View file @
7843fd76
...
...
@@ -52,6 +52,10 @@ def create_app(config_name):
referrer
=
session
[
'return_url'
],
cancel_url
=
vars
.
default_referrer
)
@
app
.
route
(
'/error'
)
def
error
():
return
'ERROR: '
# misc page error catching
@
app
.
errorhandler
(
403
)
def
forbidden
(
error
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment