Skip to content

Commit

Permalink
Fixed missed waiting for user input, if no desktop is found.
Browse files Browse the repository at this point in the history
  • Loading branch information
tvrzna committed Jun 3, 2020
1 parent 15092e6 commit 66b7af9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion desktop.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package main

import (
"bufio"
"errors"
"fmt"
"io/ioutil"
"log"
Expand Down Expand Up @@ -46,7 +47,7 @@ type lastSession struct {
func selectDesktop(uid int) *desktop {
desktops := listAllDesktops()
if len(desktops) == 0 {
log.Fatal("Not found any installed desktop.")
handleErr(errors.New("Not found any installed desktop."))
}

lastSessions := loadLastSessions()
Expand Down

0 comments on commit 66b7af9

Please sign in to comment.