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

Passing trace for runtime-log-level leads to cryptic error message #788

Closed
bkchr opened this issue Jul 9, 2024 · 2 comments
Closed

Passing trace for runtime-log-level leads to cryptic error message #788

bkchr opened this issue Jul 9, 2024 · 2 comments
Assignees

Comments

@bkchr
Copy link

bkchr commented Jul 9, 2024

ZodError: [
  {
    "code": "invalid_type",
    "expected": "number",
    "received": "nan",
    "path": [
      "runtime-log-level"
    ],
    "message": "Expected number, received nan"
  }
]
    at get error [as error] (/home/bastian/.npm/_npx/81ad9c881cb83600/node_modules/zod/lib/types.js:55:31)
    at ZodObject.parse (/home/bastian/.npm/_npx/81ad9c881cb83600/node_modules/zod/lib/types.js:160:22)
    at Object.handler (/home/bastian/.npm/_npx/81ad9c881cb83600/node_modules/@acala-network/chopsticks/dist/cjs/plugins/run-block/cli.js:32:35)
    at /home/bastian/.npm/_npx/81ad9c881cb83600/node_modules/yargs/build/index.cjs:1:8993
    at /home/bastian/.npm/_npx/81ad9c881cb83600/node_modules/yargs/build/index.cjs:1:4949
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
  issues: [
    {
      code: 'invalid_type',
      expected: 'number',
      received: 'nan',
      path: [Array],
      message: 'Expected number, received nan'
    }
  ],
  addIssue: [Function (anonymous)],
  addIssues: [Function (anonymous)],
  errors: [
    {
      code: 'invalid_type',
      expected: 'number',
      received: 'nan',
      path: [Array],
      message: 'Expected number, received nan'
    }
  ]
}

Would be better to have a more human friendly error message if possible.

@xlc
Copy link
Member

xlc commented Jul 10, 2024

let us know if #789 makes it clear enough

@xlc xlc closed this as completed Jul 24, 2024
@bkchr
Copy link
Author

bkchr commented Jul 24, 2024

Sorry for the late reply, looks good! :)

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

No branches or pull requests

3 participants