mirror of
https://github.com/astaxie/beego.git
synced 2025-07-11 05:41:01 +00:00
accept @ysqi suggestion
This commit is contained in:
@ -20,7 +20,6 @@ import (
|
||||
"path/filepath"
|
||||
"strings"
|
||||
"fmt"
|
||||
"errors"
|
||||
|
||||
"github.com/astaxie/beego/config"
|
||||
"github.com/astaxie/beego/session"
|
||||
@ -320,7 +319,7 @@ func LoadAppConfig(configPath string, adapterName string) error {
|
||||
}
|
||||
|
||||
if !utils.FileExists(absConfigPath) {
|
||||
return errors.New(fmt.Sprintf("the target config file: %s don't exist!", configPath))
|
||||
return fmt.Errorf("the target config file: %s don't exist!", configPath)
|
||||
}
|
||||
|
||||
if absConfigPath == AppConfigPath {
|
||||
|
Reference in New Issue
Block a user