In MakeErrMsg, the Windows error text was being pasted directly at the
end of the provided prefix, and only some callers provided appropriate
punctuation. Add the punctuation in MakeErrMsg and remove it from callers.
Also append the actual Windows error code, which can be really useful.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
Using Greg Bedwell's test suggestion:
> set SYSTEMROOT= > clang -c t.cpp
I was able to test the update to error reporting re. a crypto context. I got this message:
fatal error: error in backend: Could not acquire a cryptographic contextInvalid Signature.
(1) There ought to be nicer punctuation, e.g. "context: Invalid Signature."
(2) Providing the actual Windows error number could be more helpful than the text.
With this patch I get:
fatal error: error in backend: Could not acquire a cryptographic context: Invalid Signature. (0x80090006)
Comment Actions
lgtm
lib/Support/Windows/WindowsSupport.h | ||
---|---|---|
51 ↗ | (On Diff #40838) | According to MSDN, this call can update the last error code. You might want to cache it locally at the beginning of this function. |
lib/Support/Windows/WindowsSupport.h | ||
---|---|---|
51 ↗ | (On Diff #40838) | Ah, thanks for catching that. |