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:
Max Brunsfeld 2024-02-23 12:24:01 -08:00 committed by GitHub
commit 9301c1e676
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 13 additions and 3 deletions

View file

@ -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)
}
}