mirror of
https://github.com/pushbits/server.git
synced 2025-06-07 21:22:04 +02:00
lower case errors
This commit is contained in:
parent
dafc815be5
commit
72671f33d3
1 changed files with 2 additions and 2 deletions
|
@ -14,12 +14,12 @@ func ReadConfig(filename string, removeFile bool) (config *configuration.Configu
|
||||||
defer func() {
|
defer func() {
|
||||||
if r := recover(); r != nil {
|
if r := recover(); r != nil {
|
||||||
log.Println(r)
|
log.Println(r)
|
||||||
err = errors.New("Paniced while reading config")
|
err = errors.New("paniced while reading config")
|
||||||
}
|
}
|
||||||
}()
|
}()
|
||||||
|
|
||||||
if filename == "" {
|
if filename == "" {
|
||||||
return nil, errors.New("Empty filename")
|
return nil, errors.New("empty filename")
|
||||||
}
|
}
|
||||||
|
|
||||||
file, err := ioutil.ReadFile(filename)
|
file, err := ioutil.ReadFile(filename)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue