correctly show error reason for unlink