Skip to content

Are functions allowed in the scripts? #370

Closed Answered by windingwind
noppelmax asked this question in Q&A
Discussion options

You must be logged in to vote
  1. Are functions supported in the scripts?

Yes. The error presumably comes from getUri being a sync function while you use an async syntax await ... inside it.

  1. Is there any additional debug information, like Stack Traces, lines of the scripts with the error, ... available?

You can log things to console (e.g. console.log or console.trace) as in browsers. Open console from Tools - Developer - Error Console.

Import the console object using const console = require("console").

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@noppelmax
Comment options

Answer selected by noppelmax
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants