applyResponseSetFailed
applyResponseSetFailed is used internally by Shardus to set the failMessage field in the resultObject. The function takes in two parameters:
resultObject- aShardusTypes.ApplyResponseobject generated from theapplyfunction.failMessage- astringthat contains the fail message.
applyResponseSetFailed(resultObject: ShardusTypes.ApplyResponse, failMessage: string) {
resultObject.failed = true
resultObject.failMessage = failMessage
}