Merge pull request #3068 from tree-sitter/load-old-language-via-wasm-crash
Fix crash when attempting to load ancient languages via wasm
This commit is contained in:
commit
9301c1e676
3 changed files with 13 additions and 3 deletions
|
|
@ -134,7 +134,7 @@ impl fmt::Display for WasmError {
|
|||
WasmErrorKind::Instantiate => "Failed to instantiate wasm module",
|
||||
WasmErrorKind::Other => "Unknown error",
|
||||
};
|
||||
write!(f, "{kind} {}", self.message)
|
||||
write!(f, "{kind}: {}", self.message)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue