UWVA#60142 Betere foutmelding (in plaats van crash) als CreateEPlotSection bronfile niet bestaat

svn path=/Slnkdwf/trunk/; revision=44860
This commit is contained in:
Jos Groot Lipman
2019-11-12 12:53:49 +00:00
parent 19cf41646b
commit 09bc294ff7

View File

@@ -142,6 +142,12 @@ STDMETHODIMP CDWFFile::CreateEPlotSection(BSTR W2DPath, VARIANT EPlotStream, LON
return E_INVALIDARG;
}
}
catch (DWFException& ex)
{
CString err;
err.Format("%ls\n%ls\n%s\n%ls(%d)", ex.type(), ex.message(), ex.function(), ex.file(), ex.line());
return myAtlReportError(GetObjectCLSID(), "\nCDWFFile::CreateEPlotSection('%s')\n%s", CString(W2DPath), err);
}
catch (CString& e)
{
return myAtlReportError (GetObjectCLSID(), e);