mirror of https://bitbucket.org/ausocean/av.git
fixing error handling
This commit is contained in:
parent
f1f7235fa5
commit
36986d543b
|
@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue