Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Panic when file / folder is missing #5

Open
qhga opened this issue Jan 16, 2022 · 2 comments
Open

Panic when file / folder is missing #5

qhga opened this issue Jan 16, 2022 · 2 comments

Comments

@qhga
Copy link

qhga commented Jan 16, 2022

After running the executable it seems pretty worried about smth...
Maybe a missing err != nil check? We will never find out! PLX HEEELP

panic: open /usr/share/dict/words: no such file or directory

goroutine 1 [running]:
github.com/TheDonDope/gordle/pkg/validation.readWords()
        /tmp/gordle/pkg/validation/guess.go:101 +0x9c
github.com/TheDonDope/gordle/pkg/validation.NewWotd()
        /tmp/gordle/pkg/validation/guess.go:75 +0x2b
main.main()
        /tmp/gordle/cmd/cli/main.go:19 +0x2e
 /tmp/gordle/cmd/cli
@TheDonDope
Copy link
Owner

Yeah this kinda sucks. For a linux system, e.g. debian based, on needs to $ apt-get install wbritish or $ apt-get install wamerican to install the dictionary required. I'll update the README, thanks for the hint!

@TheDonDope
Copy link
Owner

Should be fixed through f4cd45a

Could you git pull and verify plz?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants