From 45d1c6c2ecf2f53f468d1eeef46aecb749e7086d Mon Sep 17 00:00:00 2001 From: zak Date: Thu, 22 Dec 2022 00:37:04 +1000 Subject: unveil: cleanup code in main.go --- main.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'main.go') diff --git a/main.go b/main.go index 2bccd33..77b1263 100644 --- a/main.go +++ b/main.go @@ -20,8 +20,9 @@ func main() { log.Fatal(err) } - if err = UnveilPaths([]string{c.Dirs.Static, c.Repo.ScanPath, c.Dirs.Templates}, "r"); err != nil { - log.Fatal(err) + err = UnveilPaths([]string{c.Dirs.Static, c.Repo.ScanPath, c.Dirs.Templates}, "r") + if err != nil { + log.Fatalf("unveil: %w", err) } mux := routes.Handlers(c) -- cgit