Skip to main content

Script Results

After a script is run the results will be displayed in the Twinit IDE Console. The results will include information like the name of the script run, the time it was run at, script run status, and any results.

{   "script": "scriptName",   "run": "10:16:48",   "elapsed": "0.28 secs",   "status": "Script completed successfully",   "error": "Error message",   "debugInfo": {},   "result": {   },   "callbackResults": [   ]}

Results explained:

  • script : name of the script that was run
  • run : the time when the script was run
  • elapsed : the time it took for the script to run
  • status : whether the script executed successfully or errored
  • error: any error message thrown by the script
  • debugInfo: Information included when a script fails including the version of the IDE Extension, the environment configuration, and the current context with which the script was run
  • result : the result returned by the script
  • callbackResults : an array of the results returned to each invocation of the callback