Fixed wrong error formatting on Windows.