encore icon indicating copy to clipboard operation
encore copied to clipboard

Better error messages for client code gen

Open sbdchd opened this issue 2 years ago • 1 comments

I saw https://github.com/encoredev/encore/issues/118 which is very similar / the same issue, but the current error message isn't great

❯ encore gen client testaug5-atf2 --lang=typescript

error: could not fetch API metadata: GET /apps/testaug5-atf2/envs/@primary/meta: http 404 Not Found: code=env_not_deployed detail=null

but this worked:

encore gen client testaug5-atf2 --lang=typescript --env=local > client.ts 

sbdchd avatar Aug 05 '22 22:08 sbdchd

Thanks, you're absolutely right. Will fix this, thank you!

eandre avatar Aug 08 '22 19:08 eandre