Skip to content

Added a file accessibility check to addFile - #16

Open
senderic wants to merge 1 commit into
owenchong:masterfrom
senderic:master
Open

Added a file accessibility check to addFile#16
senderic wants to merge 1 commit into
owenchong:masterfrom
senderic:master

Conversation

@senderic

Copy link
Copy Markdown

I was back and forth on this idea, as throwing an error has its merits, but since we are adding files within a JSON array, if a file is not accessible, giving a console.error(..) prompt and not breaking flows better for me.

Potentially options can be added so throw exceptions if that is more desired by the end user?

I was back and forth on this idea, as throwing an error has its merits, but since we are adding files within a JSON array, if a file is not accessible, giving a `console.error(..)` prompt and not breaking flows better for me. 

Potentially options can be added so throw exceptions if that is more desired by the end user?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant