Sign In Register

How can we help you today?

Start a new topic

Spark.hasScriptErrors() return false while it should be true

// Cloud Code for CreateTeamResponse

Spark.setScriptData("resultfail", Spark.hasScriptErrors());


while the response is


{
  "@class": ".CreateTeamResponse",
  "error": {
    "teamType": "MAX_OWNED_REACHED"
  },
  "scriptData": {
    "resultfail": false
  }
}
1 Comment

Hi Damien,


The error in the request you are sending is a system error. The hasScriptErrors method is for custom errors that the user has set in the script with setScriptError. It won't pick up system errors. Does that make sense ? 


Regards,

Liam

Login to post a comment