Complete a condition to avoid errors.
Update the exception message.
Merge pull request #27 from Hywan/writer_array

Complete a condition to avoid errors