aboutsummaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorzak <e-zk@users.noreply.github.com>2022-12-22 00:37:04 +1000
committerAnirudh Oppiliappan <x@icyphox.sh>2022-12-22 11:17:59 +0530
commit45d1c6c2ecf2f53f468d1eeef46aecb749e7086d (patch)
tree6a0ada96f5754c3bc15cc94b55dc0d57d1fc28b0 /main.go
parentunveil: log each call (diff)
downloadlegitrx-45d1c6c2ecf2f53f468d1eeef46aecb749e7086d.tar.gz
legitrx-45d1c6c2ecf2f53f468d1eeef46aecb749e7086d.tar.zst
legitrx-45d1c6c2ecf2f53f468d1eeef46aecb749e7086d.zip
unveil: cleanup code in main.go
Diffstat (limited to 'main.go')
-rw-r--r--main.go5
1 files changed, 3 insertions, 2 deletions
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)