all repos — legit @ 45d1c6c2ecf2f53f468d1eeef46aecb749e7086d

fork of git.icyphox.sh/legit

unveil: cleanup code in main.go
zak e-zk@users.noreply.github.com
Thu, 22 Dec 2022 00:37:04 +1000
commit

45d1c6c2ecf2f53f468d1eeef46aecb749e7086d

parent

8c129f888984261fd9d02d9fb202369ff9a0af6a

1 files changed, 3 insertions(+), 2 deletions(-)

jump to
M main.gomain.go

@@ -20,8 +20,9 @@ if err != nil {

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)