Skip to content

Commit 497ba53

Browse files
committed
tweak Trap::CannotBlockSyncTask message
This clarifies that such a task cannot block prior to returning. Signed-off-by: Joel Dice <joel.dice@fermyon.com>
1 parent a143afd commit 497ba53

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/environ/src/trap_encoding.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ impl fmt::Display for Trap {
194194
DisabledOpcode => "pulley opcode disabled at compile time was executed",
195195
AsyncDeadlock => "deadlock detected: event loop cannot make further progress",
196196
CannotLeaveComponent => "cannot leave component instance",
197-
CannotBlockSyncTask => "cannot block a synchronous task",
197+
CannotBlockSyncTask => "cannot block a synchronous task before returning",
198198
};
199199
write!(f, "wasm trap: {desc}")
200200
}

0 commit comments

Comments
 (0)