Fix writer reference for error printing
Merge pull request #9 from Scalingo/fix_optional_error

Fix writer reference for error printing