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

Error StringExpected #445

Open
ARR4NN opened this issue Mar 17, 2022 · 3 comments
Open

Error StringExpected #445

ARR4NN opened this issue Mar 17, 2022 · 3 comments

Comments

@ARR4NN
Copy link

ARR4NN commented Mar 17, 2022

when i use the code on the npm page to create the house I get

Error
    at createCanvas (C:\Users\User\Documents\Discord Bots\Suggestions\node_modules\@napi-rs\canvas\index.js:160:7)
    at Object.execute (C:\Users\User\Documents\Discord Bots\Suggestions\commands\user commands\profile.js:24:24)
    at processTicksAndRejections (node:internal/process/task_queues:96:5) {
  code: 'StringExpected'
}

the line 24 in profile.js is
const canvas = createCanvas(300, 320)

@twlite
Copy link
Contributor

twlite commented Aug 9, 2022

is it possible to make these errors more meaningful? Right now it's hard to debug what exactly went wrong because most of the errors are like

Error ...
    code: '<SomeType>Expected'

We have to depend upon the line number in the stacktrace

@Brooooooklyn
Copy link
Owner

I'll improve the error messages in NAPI-RS

@janpio
Copy link

janpio commented Oct 13, 2022

Related on Prisma side: prisma/prisma#13864

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

4 participants