You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Yes, I would like these errors to be standardized as well. I currently am relying on the error message to provide an accurate emulation of Node's fs behavior:
try{dir=awaitdir.getDirectory(part);}catch(e){if(e.message==='The path supplied exists, but was not an entry of requested type.'){thrownewENOTDIR(filepath);}thrownewENOENT(filepath);}
mkruisselbrink
changed the title
The getFile() and getDirectory method can reject, but how and with what exception
The getFileHandle() and getDirectoryHandle method can reject, but how and with what exception
Feb 11, 2022
In response to w3ctag/design-reviews#390
Do these reject with exception? Always the same type of exception etc? It is unclear
The text was updated successfully, but these errors were encountered: