report error code on windows