mirror of
https://github.com/beego/bee.git
synced 2024-06-29 05:04:14 +00:00
fix bug: parsejson must use ptr
fix bug: parsejson must use ptr
This commit is contained in:
parent
77acc749e4
commit
3c1fc915d7
2
conf.go
2
conf.go
|
@ -90,7 +90,7 @@ func loadConfig() (err error) {
|
||||||
|
|
||||||
if fileInfo.Name() == "bee.json" {
|
if fileInfo.Name() == "bee.json" {
|
||||||
logger.Info("Loading configuration from 'bee.json'...")
|
logger.Info("Loading configuration from 'bee.json'...")
|
||||||
err = parseJSON(path, conf)
|
err = parseJSON(path, &conf)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
logger.Errorf("Failed to parse JSON file: %s", err)
|
logger.Errorf("Failed to parse JSON file: %s", err)
|
||||||
return err
|
return err
|
||||||
|
|
Loading…
Reference in New Issue
Block a user