mirror of
https://github.com/go-kratos/kratos.git
synced 2025-03-17 21:07:54 +02:00
panic when have not -conf (#40)
This commit is contained in:
parent
22cae18871
commit
bd2d576848
@ -24,6 +24,7 @@ func Init() (err error) {
|
||||
DefaultClient, err = NewFile(confPath)
|
||||
} else {
|
||||
// TODO: config service
|
||||
panic("Please specify a file or dir name by -conf flag.")
|
||||
return
|
||||
}
|
||||
if err != nil {
|
||||
|
Loading…
x
Reference in New Issue
Block a user