summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--main.go9
1 files changed, 6 insertions, 3 deletions
diff --git a/main.go b/main.go
index 77b1263..60112d8 100644
--- a/main.go
+++ b/main.go
@@ -20,9 +20,12 @@ func main() {
log.Fatal(err)
}
- err = UnveilPaths([]string{c.Dirs.Static, c.Repo.ScanPath, c.Dirs.Templates}, "r")
- if err != nil {
- log.Fatalf("unveil: %w", err)
+ if err := UnveilPaths([]string{
+ c.Dirs.Static,
+ c.Repo.ScanPath,
+ c.Dirs.Templates},
+ "r"); err != nil {
+ log.Fatalf("unveil: %s", err)
}
mux := routes.Handlers(c)