fixing error handling

This commit is contained in:
Unknown 2018-03-14 20:09:08 +10:30
parent f1f7235fa5
commit 36986d543b
1 changed files with 1 additions and 2 deletions

View File

@ -129,9 +129,8 @@ func NewRevidInstance(config Config) (r *revidInst, err error) {
r.Log(Info, "New revid instance created! config is:") r.Log(Info, "New revid instance created! config is:")
r.Log(Info, fmt.Sprintf("%v", r.config)) r.Log(Info, fmt.Sprintf("%v", r.config))
if r.setupOutput != nil { if r.setupOutput != nil {
err := r.setupOutput() err = r.setupOutput()
if err != nil { if err != nil {
r.Log(Error, "Output setup didn't work!")
return return
} }
} }