From: Judah Caruso Date: Thu, 7 Dec 2023 23:30:38 +0000 (+0000) Subject: clarify error message more X-Git-Url: https://git.brendanfh.com/?a=commitdiff_plain;h=a731c0ab997269240dbd405cb5a418f751b42fa1;p=onyx.git clarify error message more --- diff --git a/compiler/src/types.c b/compiler/src/types.c index ee17680a..ee5ed969 100644 --- a/compiler/src/types.c +++ b/compiler/src/types.c @@ -383,7 +383,7 @@ static Type* type_build_from_ast_inner(bh_allocator alloc, AstType* type_node, b if (!valid) { if (!(a_node->count_expr->flags & Ast_Flag_Const)) { - onyx_report_error(a_node->token->pos, Error_Critical, "Array type size must be a constant expression."); + onyx_report_error(a_node->token->pos, Error_Critical, "Array type size must be a constant."); } else { onyx_report_error(a_node->token->pos, Error_Critical, "Array type size expression must be 'i32', got '%s'.",