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:
parent
19a3a5004c
commit
3fe51fc6c5
@ -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)
|
||||
|
||||
|
@ -94,6 +94,7 @@ custom:
|
||||
prefix: "static/"
|
||||
# end: files
|
||||
- files:
|
||||
- "assets/database_not_available.html"
|
||||
- "assets/error.html"
|
||||
- "assets/footer.html"
|
||||
- "assets/index.html"
|
||||
|
Loading…
Reference in New Issue
Block a user