Improved error handing for function analysis for functions in the f(y) format (#1338)

* Updated the CanFunctionAnalysisBePerformed api to use the updated one with variableIsNotX error handling. Updated the UI to reflect the new descriptive error case to show an informative error.

* Fixed spacing and updated the moved the variableIsNotX check up into the parent if statement

* Update the internals version to match the version needed to support this change
This commit is contained in:
Stephanie Anderl
2020-09-15 14:27:22 -07:00
committed by GitHub
parent bc473617ae
commit a0f98ca76b
7 changed files with 24 additions and 11 deletions

View File

@@ -63,6 +63,10 @@ namespace CalculatorApp::ViewModel
{
AnalysisErrorString = m_resourceLoader->GetString(L"KGFAnalysisNotSupported");
}
else if (graphEquation->AnalysisError == static_cast<int>(AnalysisErrorType::VariableIsNotX))
{
AnalysisErrorString = m_resourceLoader->GetString(L"KGFVariableIsNotX");
}
return;
}

View File

@@ -23,6 +23,7 @@ namespace CalculatorApp
{
NoError,
AnalysisCouldNotBePerformed,
AnalysisNotSupported
AnalysisNotSupported,
VariableIsNotX
};
}