terminal: return errQueue error

If an error is returned from the errQueue channel, we want that error to
be returned so that LiT is shutdown with a non-0 exit code.
This commit is contained in:
Elle Mouton 2023-05-21 18:47:09 +02:00
parent 20a835cf42
commit 8db75cf11c
No known key found for this signature in database
GPG key ID: D7D916376026F177

View file

@ -622,8 +622,8 @@ func (g *LightningTerminal) start() error {
select {
case err := <-g.errQueue.ChanOut():
if err != nil {
log.Errorf("Received critical error from subsystem, "+
"shutting down: %v", err)
return fmt.Errorf("received critical error from "+
"subsystem, shutting down: %v", err)
}
case <-lndQuit: