mirror of
https://github.com/lightninglabs/lightning-terminal.git
synced 2026-08-13 12:33:36 +02:00
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:
parent
20a835cf42
commit
8db75cf11c
1 changed files with 2 additions and 2 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue