summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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)