mirror of
https://github.com/astaxie/beego.git
synced 2024-11-22 12:50:55 +00:00
for init if doesn't have app.conf will not panic
This commit is contained in:
parent
b97d9896a4
commit
b733b98408
@ -122,8 +122,8 @@ func init() {
|
|||||||
|
|
||||||
err := ParseConfig()
|
err := ParseConfig()
|
||||||
if err != nil && !os.IsNotExist(err) {
|
if err != nil && !os.IsNotExist(err) {
|
||||||
// panic unless the err is can not find default configuration file
|
// for init if doesn't have app.conf will not panic
|
||||||
panic(err)
|
Info(err)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user