BUGFIX : getJailConfig returns 2 values
This commit is contained in:
parent
f9ce3601df
commit
6821b14407
@ -221,7 +221,7 @@ func getJailConfig(jailConfigPath string) (JailConfig, error) {
|
|||||||
// Mandatory constructor to init default values
|
// Mandatory constructor to init default values
|
||||||
jc, err := NewJailConfig()
|
jc, err := NewJailConfig()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return jc, err
|
||||||
}
|
}
|
||||||
err = json.Unmarshal([]byte(content), &jc)
|
err = json.Unmarshal([]byte(content), &jc)
|
||||||
if err != nil { log.Fatalln(fmt.Sprintf("Error occured during unmarshaling %s: %s", jailConfigPath, err.Error())) }
|
if err != nil { log.Fatalln(fmt.Sprintf("Error occured during unmarshaling %s: %s", jailConfigPath, err.Error())) }
|
||||||
|
Loading…
Reference in New Issue
Block a user