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