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:
pztrn committed 2019-03-07 08:39:12 +05:00
1 parent 19a3a5004c
commit 3fe51fc6c5
2 files changed
+3

No files matched your search

+2
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)
+1
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"