Catch os... errors

This commit is contained in:
Bwko authored and Kim "BKC" Carlbäcker committed 2016-12-02 07:41:19 +01:00
1 parent 5ab85372da
commit 4ff0db0246
14 files changed
+123 -29

No files matched your search

+3 -1
View File
@@ -51,7 +51,9 @@ func setup(logPath string) {
if setting.UseSQLite3 || setting.UseTiDB {
workDir, _ := setting.WorkDir()
os.Chdir(workDir)
if err := os.Chdir(workDir); err != nil {
log.GitLogger.Fatal(4, "Fail to change directory %s: %v", workDir, err)
}
}
models.SetEngine()