From: Brendan Hansen Date: Sat, 23 Dec 2023 04:49:58 +0000 (-0600) Subject: fixed: silly eror in `#export` duplication reporting X-Git-Url: https://git.brendanfh.com/?a=commitdiff_plain;h=595c61215044d094a886540a80f4ae4256d5de64;p=onyx.git fixed: silly eror in `#export` duplication reporting --- diff --git a/compiler/src/wasm_emit.c b/compiler/src/wasm_emit.c index 51f58831..58fce47f 100644 --- a/compiler/src/wasm_emit.c +++ b/compiler/src/wasm_emit.c @@ -4612,7 +4612,7 @@ static void emit_export_directive(OnyxWasmModule* mod, AstDirectiveExport* expor token_toggle_end(export->export_name); if (shgeti(mod->exports, export->export_name->text) != -1) { - onyx_errors_print(export->token->pos, Error_Critical, "Duplicate export name, '%s'.", export->export_name->text); + onyx_report_error(export->token->pos, Error_Critical, "Duplicate export name, '%s'.", export->export_name->text); token_toggle_end(export->export_name); return; }