mirror of
https://gitee.com/johng/gf
synced 2026-06-07 02:12:11 +08:00
change Error from struct to interface for package gvalid;error string update for package gdb
This commit is contained in:
@ -54,14 +54,14 @@ func Database(name ...string) gdb.DB {
|
||||
if exampleConfigFilePath, _ := Config().GetFilePath(exampleFileName); exampleConfigFilePath != "" {
|
||||
panic(gerror.Wrapf(
|
||||
err,
|
||||
`configuration file "%s" not found, but found "%s", did you miss renaming the configuration example file?`,
|
||||
`configuration file "%s" not found, but found "%s", did you miss renaming the example configuration file?`,
|
||||
Config().GetFileName(),
|
||||
exampleFileName,
|
||||
))
|
||||
} else {
|
||||
panic(gerror.Wrapf(
|
||||
err,
|
||||
`configuration file "%s" not found, did you miss the configuration file or the file name setting?`,
|
||||
`configuration file "%s" not found, did you miss the configuration file or the misspell the configuration file name?`,
|
||||
Config().GetFileName(),
|
||||
))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user