mirror of
https://github.com/go-kratos/kratos.git
synced 2026-05-22 10:15:24 +02:00
panic when have not -conf (#40)
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user