diff --git a/google-noto-fonts.spec b/google-noto-fonts.spec index 35c371c..a1114fd 100644 --- a/google-noto-fonts.spec +++ b/google-noto-fonts.spec @@ -750,9 +750,13 @@ local function gentestyaml() end io.stderr:write("Generating tests.yml...") local f = io.open("tests/tests.yml", "w") - f:write(yaml) - f:close() - io.stderr:write("Done!") + if f then + f:write(yaml) + f:close() + io.stderr:write("Done!") + else + io.stderr:write("Unable to open tests.yml") + end end local function notopkg(table)