chore: improve error message
This commit is contained in:
parent
946f5537ee
commit
299bc54af0
1 changed files with 2 additions and 1 deletions
|
|
@ -151,7 +151,8 @@ newSyntheticMVars ← s.syntheticMVars.filterM $ fun mvarDecl =>
|
|||
val ← instantiateMVars (mkMVar mvarDecl.mvarId);
|
||||
when val.getAppFn.isMVar $
|
||||
unlessM (isDefEq val defaultVal) $
|
||||
throwError "failed to assign default value to metavariable"; -- TODO: better error message
|
||||
-- TODO: better error message
|
||||
throwError ("failed to assign default value to metavariable" ++ indentExpr val ++ Format.line ++ "default value" ++ indentExpr defaultVal) ;
|
||||
pure false
|
||||
| _ => pure true;
|
||||
modify $ fun s => { s with syntheticMVars := newSyntheticMVars };
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue