Improve checkwrite messages to user.
Merge pull request #4185 from AndresTanasijczuk/checkwrite

Improve checkwrite messages to user.