context.guestErr not returned if guestCall is not error
alanpoon opened this issue · 1 comments
alanpoon commented
https://github.com/wapc/wapc-go/blob/master/module.go#L398
Sometimes we want to fetch the error inside the guest invocation, we cannot. GuestCall will only be error if the invoke command is not found or there is panic.
if err != nil {
return nil, errors.Wrap(err, "error invoking guest")
}
if context.guestErr != "" {
return nil, errors.WithStack(errors.New(context.guestErr))
}