From 815d8989c7967ce0c690e29cb53ac1ccfa4221ab Mon Sep 17 00:00:00 2001 From: robertsasu Date: Wed, 4 Oct 2023 16:17:39 +0300 Subject: [PATCH] return error in case of init/upgrade if no function found --- vmhost/hostCore/execution.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vmhost/hostCore/execution.go b/vmhost/hostCore/execution.go index 51c95912d..64aded75b 100644 --- a/vmhost/hostCore/execution.go +++ b/vmhost/hostCore/execution.go @@ -1150,7 +1150,7 @@ func (host *vmHost) callUpgradeFunction() error { func (host *vmHost) callSCFunction(functionName string) error { runtime := host.Runtime() if !runtime.HasFunction(functionName) { - return nil + return executor.ErrFuncNotFound } err := runtime.CallSCFunction(functionName)