From 3fe51fc6c5ad125366896ef1c26f8e8b4654c855 Mon Sep 17 00:00:00 2001 From: "Stanislav N. aka pztrn" Date: Thu, 7 Mar 2019 08:39:12 +0500 Subject: [PATCH] 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). --- cmd/fastpastebin/fastpastebin.go | 2 ++ fileb0x.yml | 1 + 2 files changed, 3 insertions(+) diff --git a/cmd/fastpastebin/fastpastebin.go b/cmd/fastpastebin/fastpastebin.go index 6946bfd..25419f3 100644 --- a/cmd/fastpastebin/fastpastebin.go +++ b/cmd/fastpastebin/fastpastebin.go @@ -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) diff --git a/fileb0x.yml b/fileb0x.yml index 9494780..159cf64 100644 --- a/fileb0x.yml +++ b/fileb0x.yml @@ -94,6 +94,7 @@ custom: prefix: "static/" # end: files - files: + - "assets/database_not_available.html" - "assets/error.html" - "assets/footer.html" - "assets/index.html"