validator script Error : Returning [object object]
I have created several validator scripts and have defined the the return in a variable
var ReturnResult = status.OK_STATUS
I define the parameters in my if statement for the conditions I want it to throw an error
anything else has a result of status okay
which I define as return ReturnStatus outside of my if loop
If the condition is okay the console log displays return is [object object]
In the javascript log on the server the error is ['Return is [object.com.ibm.team.rtc.foundation.api.common.Status]
Can anyone tell me why the return result is [object object]