bytecodealliance / bytecodealliance/wasmtime

Improve error messages

Open
#9,293 4 comments 1 reaction 0 assignees View on GitHub
Dominant language
Rust
Stars
18.6k
Forks
1.8k
Avg merge
1d 18h
Merged PRs (30d)
126

Description

#### Feature

Improve error messages.

#### Benefit

Descriptive error messages are useful when writing raw wasm code.

#### Implementation

N/A

#### Alternatives

Not much of an alternative, but one can use wabt. For comparison, wasmtime:

```
$ wasmtime stack-types.wat
Error: WebAssembly translation error

Caused by:
Invalid input WebAssembly code at offset 45: type mismatch: expected i32 but nothing on stack
```

wabt:

```
$ wat2wasm stack-types.wat
stack-types.wat:3:5: error: type mismatch in i32.eqz, expected [i32] but got []
i32.eqz
^^^^^^^
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.