Skip to content

Commit ded67d2

Browse files
committed
improve error message
1 parent 66cd7f6 commit ded67d2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/iwasm/interpreter/wasm_loader.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -854,8 +854,8 @@ load_init_expr(WASMModule *module, const uint8 **p_buf, const uint8 *buf_end,
854854
}
855855
else {
856856
if (!wasm_is_valid_heap_type(heap_type)) {
857-
set_error_buf(error_buf, error_buf_size,
858-
"unknown type");
857+
set_error_buf_v(error_buf, error_buf_size,
858+
"unknown heap type %d", heap_type);
859859
goto fail;
860860
}
861861
}

0 commit comments

Comments
 (0)