Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

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]

0 votes



One answer

Permanent link

 Don't use console.log bug console.debug and look the object returned. 


0 votes

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,927

Question asked: Feb 12 '19, 12:36 p.m.

Question was seen: 1,837 times

Last updated: Feb 22 '19, 5:14 a.m.

Confirmation Cancel Confirm