Fix crash when attempting to load ancient languages via wasm

This commit is contained in:
Max Brunsfeld 2024-02-23 11:48:14 -08:00
parent 1c55abb530
commit 8dded3ab60
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)
}
}