go-check/check — pull request #26 by aznashwan (2014-10-23 17:36:51+00:00)
Title: Fixed misleading tempdir removal error message under Windows.

In my last pull I seem to have missed the fact that td.path is used below for clean-up and also printed when an error might occur, like:

WARNING: Error cleaning up temporaries: remove C:\Users\Nashwan\AppData\Local\Temp/check-867466...
^
This can be very misleading, especially if the error occurs due to an unrelated cause (ex: permission denied), making it seem as though the directory was improperly created in the first place (as was my case).

This fixes the issue, gocheck now displaying a proper error message when it fails to clean-up its temporaries due to outside causes.