mirror of
https://github.com/pushbits/server.git
synced 2025-06-01 02:01:59 +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() {
|
||||
if r := recover(); r != nil {
|
||||
log.Println(r)
|
||||
err = errors.New("Paniced while reading config")
|
||||
err = errors.New("paniced while reading config")
|
||||
}
|
||||
}()
|
||||
|
||||
if filename == "" {
|
||||
return nil, errors.New("Empty filename")
|
||||
return nil, errors.New("empty filename")
|
||||
}
|
||||
|
||||
file, err := ioutil.ReadFile(filename)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue