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

Error Handling #162

Open
saikiran76 opened this issue Oct 12, 2023 · 0 comments
Open

Error Handling #162

saikiran76 opened this issue Oct 12, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@saikiran76
Copy link

Describe the bug
It is not really a bug and not very necessary. But while Error handling here in the code while creating a directory, It will be better to throw the error message if the directory was failed to create.

To Reproduce
Steps to reproduce the behavior:

  1. Go to scripts folder
  2. Click on updateData.js
  3. Scroll down to line 23.
  4. There while catching the error, it would be better to display the error message if the directory was failed to create.

Expected behavior
After adding my piece of code, I expect the error message to display if there is a failure to create directory. Because throwing an error could be a good practice but exceptional.

Screenshots
If applicable, add screenshots to help explain your problem.
image

Desktop (please complete the following information):

  • OS: Windows 11
  • Browser: Brave
  • Version 1.58

Smartphone (please complete the following information):

  • Device: Poco M4 Pro
  • OS: MIUI
  • Browser: Chrome
  • Version: 13.0.5

Additional context
Add any other context about the problem here.

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
None yet
Development

No branches or pull requests

1 participant