FIX Incorrect error message when failing to write to disk

https://forum.transmissionbt.com/viewtopic.php?f=2&t=16422