chore: avoid useless failed to synthesize CoeFun ... tail message
This commit is contained in:
parent
40578d6d24
commit
1e8a4d1da5
1 changed files with 3 additions and 3 deletions
|
|
@ -63,9 +63,9 @@ private def tryCoeFun (α : Expr) (a : Expr) : TermElabM Expr := do
|
|||
let synthesized ←
|
||||
try
|
||||
withoutMacroStackAtErr $ synthesizeInstMVarCore mvarId
|
||||
catch
|
||||
| Exception.error _ msg => throwError! "function expected\n{msg}"
|
||||
| _ => throwError "function expected"
|
||||
catch _ =>
|
||||
-- Should we add an option for showing the type class failure?
|
||||
throwError "function expected"
|
||||
if synthesized then
|
||||
pure $ mkAppN (Lean.mkConst `coeFun [u, v]) #[α, γ, a, mvar]
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue