forked from jgm/lunamark
-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add helpful messages to read/write errors
When using \markdownInput to read a file that does not exist or is not readable, the error message written in the error output file is not very indicative of the problem: ./main.markdown.lua:1: attempt to index a nil value This commit makes the message more descriptive: ./main.markdown.lua:1: could not open file "input.md" for reading Such messages have been added to several other places in the code where reads/writes are performed (only the important ones wrapped with asserts that are likely to fail).
- Loading branch information
Showing
1 changed file
with
11 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters