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

Bug: Champion data folder does not exists #4

Closed
sam123114 opened this issue Sep 7, 2024 · 0 comments · Fixed by #5
Closed

Bug: Champion data folder does not exists #4

sam123114 opened this issue Sep 7, 2024 · 0 comments · Fixed by #5
Assignees
Labels
bug Something isn't working
Milestone

Comments

@sam123114
Copy link
Owner

sam123114 commented Sep 7, 2024

Bug Description:

When running the application for the first time, the data folder does not exists and it generates an error

Error: ENOENT: no such file or directory, open './data/champion_data.json'
    at Object.openSync (node:fs:603:3)
    at Object.writeFileSync (node:fs:2324:35)
    at writeFileSync (F:\Developpement\DiscordBot\LolQuizz-example\LolQuizz\helpers\champion_data_helper.js:62:8)
    at F:\Developpement\DiscordBot\LolQuizz-example\LolQuizz\helpers\champion_data_helper.js:31:17
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
  errno: -4058,
  syscall: 'open',
  code: 'ENOENT',
  path: './data/champion_data.json'
}

Changes required

  • Create a folder if it does not exists.
@sam123114 sam123114 converted this from a draft issue Sep 7, 2024
@sam123114 sam123114 self-assigned this Sep 7, 2024
@sam123114 sam123114 added the bug Something isn't working label Sep 7, 2024
@sam123114 sam123114 added this to the 2.0.1-beta milestone Sep 7, 2024
@sam123114 sam123114 changed the title Bug: Create champion data folder if it does not exists Bug: Champion data folder if it does not exists Sep 7, 2024
@sam123114 sam123114 changed the title Bug: Champion data folder if it does not exists Bug: Champion data folder does not exists Sep 7, 2024
@sam123114 sam123114 linked a pull request Sep 7, 2024 that will close this issue
@github-project-automation github-project-automation bot moved this from In Progress to In Production in LolQuizz Sep 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: In Production
Development

Successfully merging a pull request may close this issue.

1 participant