Commit 330b3b19 authored by youngsterxyf's avatar youngsterxyf

enhancement code

parent d9e6250d
......@@ -20,6 +20,7 @@ import (
"path/filepath"
"strings"
"fmt"
"errors"
"github.com/astaxie/beego/config"
"github.com/astaxie/beego/session"
......@@ -313,6 +314,11 @@ func LoadAppConfig(configPath string, adapterName string) error {
if err != nil {
return err
}
if !utils.FileExists(absConfigPath) {
return errors.New(fmt.Sprintf("the target config file: %s don't exist!", configPath))
}
if absConfigPath == AppConfigPath {
return nil
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment