Just a note: I think it makes no sense in the except branch to try to write to 
the stream again. If it failed just use echo like you did.

Reply via email to