Windows: output pt error messages as strings