forked from Mirrors/gomuks
Return errors from sync in headless mode
This commit is contained in:
parent
3b333aef02
commit
8a1e095f58
1 changed files with 3 additions and 0 deletions
|
@ -87,6 +87,9 @@ func Init(conf Config, updates chan fmt.Stringer) error {
|
||||||
gmx.Matrix().(*matrix.Container).InitSyncer()
|
gmx.Matrix().(*matrix.Container).InitSyncer()
|
||||||
updates <- processingSync{}
|
updates <- processingSync{}
|
||||||
err = gmx.Matrix().(*matrix.Container).ProcessSyncResponse(resp, "")
|
err = gmx.Matrix().(*matrix.Container).ProcessSyncResponse(resp, "")
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
updates <- syncFinished{}
|
updates <- syncFinished{}
|
||||||
|
|
||||||
// verify (fetch)
|
// verify (fetch)
|
||||||
|
|
Loading…
Add table
Reference in a new issue