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

Add missing local file error message #200

Merged
merged 2 commits into from Jan 27, 2020

Conversation

cosnomi
Copy link
Contributor

@cosnomi cosnomi commented Jan 27, 2020

Thank you for creating this great CLI.

Problem

Currently, when allowLocalFiles is set to true and some local files are missing, marp-cli issues Marp CLI has detected accessing to local file. That is blocked by security reason. Instead we recommend using assets uploaded to online. warning. This message is confusing because users are told to set allowLocalFiles to true even though they've already done so.

Solution

Adding new error message that indicates some local files are missing would be very helpful. In this PR, I propose the error message Marp CLI has detected accessing to local file that does not exist.

@cosnomi cosnomi requested a review from yhatt January 27, 2020 08:19
Copy link
Member

@yhatt yhatt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great stuff 👍
Could you think about better warning message?

src/converter.ts Outdated Show resolved Hide resolved
Copy link
Member

@yhatt yhatt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks a lot! 😄

@yhatt yhatt merged commit c3c7f23 into marp-team:master Jan 27, 2020
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.

None yet

2 participants