mirror of
https://github.com/CatalaLang/catala.git
synced 2024-09-19 00:15:39 +03:00
Fix extra_pos/pos
This commit is contained in:
parent
241f55a71a
commit
1e76366f51
@ -272,10 +272,9 @@ let rec translate_expr (ctx : 'm ctx) (e : 'm S.expr) : 'm Ast.expr boxed =
|
||||
( var_ctx.scope_input_name,
|
||||
thunk_scope_arg var_ctx (translate_expr ctx e) )
|
||||
| Some var_ctx, None ->
|
||||
Message.error
|
||||
Message.error ~pos
|
||||
~extra_pos:
|
||||
[
|
||||
"", pos;
|
||||
( "Declaration of the missing input variable",
|
||||
Mark.get (StructField.get_info var_ctx.scope_input_name) );
|
||||
]
|
||||
|
Loading…
Reference in New Issue
Block a user