axios-docs icon indicating copy to clipboard operation
axios-docs copied to clipboard

Error Handling

Open saikiran76 opened this issue 1 year ago • 0 comments

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.

saikiran76 avatar Oct 12 '23 11:10 saikiran76