MCPcopy Create free account
hub / github.com/f0rr0/oliphaunt / runtime_error_exit_code

Function runtime_error_exit_code

src/pglite/postgres_mod.rs:2983–2988  ·  view source on GitHub ↗
(err: &wasmer::RuntimeError)

Source from the content-addressed store, hash-verified

2981}
2982
2983fn runtime_error_exit_code(err: &wasmer::RuntimeError) -> Option<i32> {
2984 err.downcast_ref::<WasiError>().and_then(|err| match err {
2985 WasiError::Exit(code) => Some(code.raw()),
2986 _ => None,
2987 })
2988}
2989
2990fn is_wasm_uncaught_exception(err: &wasmer::RuntimeError) -> bool {
2991 // Wasmer reports an uncaught WebAssembly exception when PostgreSQL ERROR

Callers 4

start_backendMethod · 0.85
send_protocol_innerMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected