Skip to content

Commit 8db75cf

Browse files
committed
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.
1 parent 20a835c commit 8db75cf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

terminal.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -622,8 +622,8 @@ func (g *LightningTerminal) start() error {
622622
select {
623623
case err := <-g.errQueue.ChanOut():
624624
if err != nil {
625-
log.Errorf("Received critical error from subsystem, "+
626-
"shutting down: %v", err)
625+
return fmt.Errorf("received critical error from "+
626+
"subsystem, shutting down: %v", err)
627627
}
628628

629629
case <-lndQuit:

0 commit comments

Comments
 (0)