diff --git a/script/update-book2.rb b/script/update-book2.rb index b4edf0daae..27c05db880 100644 --- a/script/update-book2.rb +++ b/script/update-book2.rb @@ -265,6 +265,9 @@ def local_genbook2(language_code, worktree_path) if language_code && worktree_path book = genbook(language_code) do |filename| File.open(File.join(worktree_path, filename), "r") { |infile| File.read(infile) } + rescue + puts "::error::#{filename} is missing!" + "**ERROR**: _#{filename} is missing_" end if language_code == 'en' latest_tag = `git -C "#{worktree_path}" for-each-ref --format '%(refname:short)' --sort=-committerdate --count=1 refs/tags/`.chomp