Actions
Bug #15893
closedFix "Non exhaustive pattern match" warning
Status:
Released
Priority:
N/A
Assignee:
Category:
Architecture - Code maintenance
Target version:
Pull Request:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
0
Name check:
Reviewed
Fix check:
Checked
Regression:
Description
Warning:(120, 28) match may not be exhaustive. It would fail on the following input: Left((x: Object forSome x not in (bootstrap.liftweb.checks.NcfTechniqueUpgradeError, bootstrap.liftweb.checks.NcfTechniqueUpgradeError.FlagFileError, bootstrap.liftweb.checks.NcfTechniqueUpgradeError.NcfApiAuthFailed))) authResponse <- tryo ( authRequest.asString , "An error occurred while authentication to ncf API", NcfApiAuthFailed)
The problem is with the tryo
definition, where catcher
is defined on throwable and we only catch NcfApiAuthFailed
here.
Actions