Dependencies update and database not available crash fix.

Added forgotten dependencies update.

Fixed fastpastebin crash when database isn't available and added cute
error screen for informing users about such condition (both HTML and raw).
This commit is contained in:
Stanislav Nikitin 2019-03-07 08:39:12 +05:00
parent 19a3a5004c
commit 3fe51fc6c5
No known key found for this signature in database
GPG Key ID: 106900B32F8192EE
2 changed files with 3 additions and 0 deletions

View File

@ -31,6 +31,7 @@ import (
"syscall"
// local
"gitlab.com/pztrn/fastpastebin/domains/database_not_available"
"gitlab.com/pztrn/fastpastebin/domains/indexpage"
"gitlab.com/pztrn/fastpastebin/domains/pastes"
"gitlab.com/pztrn/fastpastebin/internal/captcha"
@ -60,6 +61,7 @@ func main() {
captcha.New(c)
database_not_available.New(c)
indexpage.New(c)
pastes.New(c)

View File

@ -94,6 +94,7 @@ custom:
prefix: "static/"
# end: files
- files:
- "assets/database_not_available.html"
- "assets/error.html"
- "assets/footer.html"
- "assets/index.html"