Skip to content

Commit

Permalink
Merge pull request #349 from aergoio/release/2.5.1-dev1
Browse files Browse the repository at this point in the history
Release/2.5.1
  • Loading branch information
hayarobi committed Feb 7, 2024
2 parents db13a0d + a11e3ad commit 877e52d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion contract/vm_callback.go
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,12 @@ func luaDelegateCallContract(L *LState, service C.int, contractId *C.char,
if ctx.traceFile != nil {
_, _ = ctx.traceFile.WriteString(fmt.Sprintf("recovery snapshot: %d\n", seq))
}
return -1, C.CString("[Contract.LuaDelegateCallContract] call error: " + ce.err.Error())
switch ceErr := ce.err.(type) {
case *VmTimeoutError:
return -1, C.CString(ceErr.Error())
default:
return -1, C.CString("[Contract.LuaDelegateCallContract] call error: " + ce.err.Error())
}
}

if seq == 1 {
Expand Down

0 comments on commit 877e52d

Please sign in to comment.