Fix macos run mesh-ui plist RIVM-20

This commit is contained in:
Mihail Slobodyanuk 2022-12-12 14:12:41 +02:00
parent f81d09dad3
commit 0af5f281ea

View file

@ -113,7 +113,7 @@ func main() {
nopanic(errors.New("Index file not found: " + err.Error())) nopanic(errors.New("Index file not found: " + err.Error()))
} }
if stat, err := os.Stat(confui.IndexHtml); err != nil { if stat, err := os.Stat(confui.IndexHtml); err != nil {
panic(errors.New("Index file not found or permissians denied: " + err.Error())) nopanic(errors.New("Index file not found or permissians denied: " + err.Error()))
} else if stat.IsDir() { } else if stat.IsDir() {
nopanic(errors.New(fmt.Sprintf("Index file %v not found", confui.IndexHtml))) nopanic(errors.New(fmt.Sprintf("Index file %v not found", confui.IndexHtml)))
} }