We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 44516a7 commit cdc8657Copy full SHA for cdc8657
src/wasm.cc
@@ -295,6 +295,7 @@ bool WasmBase::initialize(const std::string &code, bool allow_precompiled) {
295
if (started_from_ == Cloneable::NotCloneable) {
296
auto ok = wasm_vm_->load(code, allow_precompiled);
297
if (!ok) {
298
+ fail(FailState::UnableToInitializeCode, "Failed to load Wasm code");
299
return false;
300
}
301
code_ = code;
@@ -303,6 +304,7 @@ bool WasmBase::initialize(const std::string &code, bool allow_precompiled) {
303
304
305
abi_version_ = wasm_vm_->getAbiVersion();
306
if (abi_version_ == AbiVersion::Unknown) {
307
+ fail(FailState::UnableToInitializeCode, "Missing or unknown Proxy-Wasm ABI version");
308
309
310
0 commit comments