Add descriptive error messages

Particularly helpful for ENOSPC (No space left on device), which previously showed only "Can't create temporary directory _", "Can't write to _" and "Hint: Check permissions!". Retains all previous hints.