Improve error handling by displaying an error message (#1075)
* wire up error messages * more errors * fix crash on render error * Always show copy and cut * PR comments * Fix spelling
This commit is contained in:
@@ -115,7 +115,7 @@ namespace MockGraphingImpl
|
||||
return m_formatOptions;
|
||||
}
|
||||
|
||||
std::unique_ptr<Graphing::IExpression> ParseInput(const std::wstring& input) override
|
||||
std::unique_ptr<Graphing::IExpression> ParseInput(const std::wstring& input, int& errorCodeOut, int& errorTypeOut) override
|
||||
{
|
||||
if (input.empty())
|
||||
{
|
||||
@@ -125,6 +125,10 @@ namespace MockGraphingImpl
|
||||
return std::make_unique<MockExpression>(MockExpression{});
|
||||
}
|
||||
|
||||
void HRErrorToErrorInfo(HRESULT hr, int& errorCodeOut, int& errorTypeOut)
|
||||
{
|
||||
}
|
||||
|
||||
std::shared_ptr<Graphing::IGraph> CreateGrapher(const Graphing::IExpression* expression) override;
|
||||
|
||||
std::shared_ptr<Graphing::IGraph> CreateGrapher() override;
|
||||
|
Reference in New Issue
Block a user