fix: input syntax errors still lead to file writing