summaryrefslogtreecommitdiffstats
path: root/routers
diff options
context:
space:
mode:
Diffstat (limited to 'routers')
-rw-r--r--routers/init.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/routers/init.go b/routers/init.go
index 3ed5fc4f58..a52f9ca1b4 100644
--- a/routers/init.go
+++ b/routers/init.go
@@ -60,7 +60,9 @@ func GlobalInit() {
log.Fatal(4, "Failed to initialize ORM engine: %v", err)
}
models.HasEngine = true
- models.InitOAuth2()
+ if err := models.InitOAuth2(); err != nil {
+ log.Fatal(4, "Failed to initialize OAuth2 support: %v", err)
+ }
models.LoadRepoConfig()
models.NewRepoContext()