Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Report javascript parse errors #1608

Closed
mrcnski opened this issue Dec 19, 2023 · 0 comments · Fixed by #1615
Closed

Report javascript parse errors #1608

mrcnski opened this issue Dec 19, 2023 · 0 comments · Fixed by #1615
Assignees

Comments

@mrcnski
Copy link
Contributor

mrcnski commented Dec 19, 2023

I was running a script:

alice: js-script ./0004-configure-relay.js with "" return is 0 within 600 secs

with some code like this:

const calls = [
  api.tx.configuration.setCoretimeCores({ new: 2 }),
  api.tx.coretime.assignCore(0, 20, [[ { task: 100 }, 57600 ]], null)
  api.tx.coretime.assignCore(1, 20, [[ { task: 1005 }, 57600 ]], null)
];

and I was getting this error (nothing else):

│ 12/19/2023, 12:20:52 PM      │  ❌ alice: js-script ./0004-configure-relay.js with "" return is 0 within 600 secs (37ms)           │

Can you see the problem? It took me hours to notice it. I thought it was a problem with assignCore!

We should report back if there is a syntax error in the script, instead of failing silently.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants