properly extract error type from windows error message (#4780)
properly extract error type from windows error message (#4780)

Co-authored-by: Jon Soifer <077b5e0815952fc8e78c419cebc3c843c545cbc7@microsoft.com>

dmlc/tvm,sxjscience/tvm,Laurawly/tvm-1,tqchen/tvm,Laurawly/tvm-1,Laurawly/tvm-1,Laurawly/tvm-1,dmlc/tvm,dmlc/tvm,sxjscience/tvm,sxjscience/tvm,dmlc/tvm,dmlc/tvm,Laurawly/tvm-1,Laurawly/tvm-1,sxjscience/tvm,tqchen/tvm,tqchen/tvm,Laurawly/tvm-1,tqchen/tvm,tqchen/tvm,Laurawly/tvm-1,sxjscience/tvm,tqchen/tvm,tqchen/tvm,tqchen/tvm,sxjscience/tvm,sxjscience/tvm,sxjscience/tvm,dmlc/tvm,dmlc/tvm,dmlc/tvm,tqchen/tvm,dmlc/tvm,Laurawly/tvm-1,sxjscience/tvm,tqchen/tvm,Laurawly/tvm-1