diff options
author | John Chen (JOCHEN7) <jochen@microsoft.com> | 2015-10-29 14:15:37 -0700 |
---|---|---|
committer | John Chen <jochen@microsoft.com> | 2016-01-04 21:54:09 -0800 |
commit | a432099572218c67b55b805d19bd29e02de42ff4 (patch) | |
tree | ca386366c72bc18d8ffeaaa309a058cafa7772bb /src/vm/clrex.cpp | |
parent | 85f256e9b41cac20834d9695675e3ac8694454f9 (diff) | |
download | coreclr-a432099572218c67b55b805d19bd29e02de42ff4.tar.gz coreclr-a432099572218c67b55b805d19bd29e02de42ff4.tar.bz2 coreclr-a432099572218c67b55b805d19bd29e02de42ff4.zip |
Improve crossgen error when mscorlib is missing (issue 1889)
When mscorlib is missing, crossgen reports a "file not found" error,
without indicating which file is missing. This makes it hard to discover
the actual error. This commit improves error reporting in such cases.
Diffstat (limited to 'src/vm/clrex.cpp')
-rw-r--r-- | src/vm/clrex.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/vm/clrex.cpp b/src/vm/clrex.cpp index 6be318299d..155c2cc466 100644 --- a/src/vm/clrex.cpp +++ b/src/vm/clrex.cpp @@ -2056,6 +2056,7 @@ void DECLSPEC_NORETURN EEFileLoadException::Throw(LPCWSTR path, HRESULT hr, Exce if (hr == E_OUTOFMEMORY) COMPlusThrowOM(); +#ifndef CROSSGEN_COMPILE // Remove path - location must be hidden for security purposes LPCWSTR pStart = wcsrchr(path, '\\'); @@ -2063,6 +2064,9 @@ void DECLSPEC_NORETURN EEFileLoadException::Throw(LPCWSTR path, HRESULT hr, Exce pStart++; else pStart = path; +#else + LPCWSTR pStart = path; +#endif EX_THROW_WITH_INNER(EEFileLoadException, (StackSString(pStart), hr), pInnerException); } |