axios-docs
axios-docs copied to clipboard
Error Handling
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:
- Go to scripts folder
- Click on updateData.js
- Scroll down to line 23.
- 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.
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.