We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9ebb379 commit 0bffa3bCopy full SHA for 0bffa3b
1 file changed
crates/c-api/src/wasi.rs
@@ -204,7 +204,7 @@ impl wasmtime_wasi::p2::OutputStream for CustomOutputStream {
204
.map_err(|e| StreamError::LastOperationFailed(e.into()))?;
205
206
if wrote != bytes.len() {
207
- return Err(StreamError::Trap(anyhow::anyhow!(
+ return Err(StreamError::LastOperationFailed(anyhow::anyhow!(
208
"Partial writes in wasip2 implementation are not allowed"
209
)));
210
}
0 commit comments