mirror of https://github.com/ledisdb/ledisdb.git
repair bugfix
This commit is contained in:
parent
a404ef26c0
commit
30b1a665e3
|
@ -14,7 +14,12 @@ var fileName = flag.String("config", "/etc/ledis.config", "ledisdb config file")
|
||||||
func main() {
|
func main() {
|
||||||
flag.Parse()
|
flag.Parse()
|
||||||
|
|
||||||
data, err := ioutil.ReadFile(fileName)
|
if len(*fileName) == 0 {
|
||||||
|
println("need ledis config file")
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
data, err := ioutil.ReadFile(*fileName)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
println(err.Error())
|
println(err.Error())
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in New Issue