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

pdfmaker, textmaker, webmaker, review-compileで存在しないymlファイルを指定したときの対処 #958

Closed
kmuto opened this issue Feb 25, 2018 · 0 comments

Comments

@kmuto
Copy link
Owner

kmuto commented Feb 25, 2018

「存在しない〜」とか「〜でのエラーが」系の手当てが薄いのはいろいろあるんだけど

% review-pdfmaker a.yml
/usr/lib/ruby/2.3.0/psych.rb:474:in `initialize': No such file or directory @ rb_sysopen - /tmp/o3/a.yml (Errno::ENOENT)
	from /usr/lib/ruby/2.3.0/psych.rb:474:in `open'
	from /usr/lib/ruby/2.3.0/psych.rb:474:in `load_file'
	from /home/kmuto/review/lib/review/yamlloader.rb:23:in `block in load_file'
	from /home/kmuto/review/lib/review/yamlloader.rb:18:in `loop'
	from /home/kmuto/review/lib/review/yamlloader.rb:18:in `load_file'
	from /home/kmuto/review/lib/review/pdfmaker.rb:111:in `execute'
	from /home/kmuto/review/lib/review/pdfmaker.rb:81:in `execute'
	from /home/kmuto/review/bin/review-pdfmaker:16:in `<main>'

epubmakerのほうはこれにはならないけどusageだけでエラーも出さないのでちょっと直したほうがいいかも。

@kmuto kmuto closed this as completed in 1545145 Feb 26, 2018
kmuto added a commit that referenced this issue Feb 26, 2018
check yaml existence and parse error. Closes #958
kmuto added a commit that referenced this issue Feb 26, 2018
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

No branches or pull requests

1 participant