Codesandbox-client: feat: improve error message when importing github repo

Created on 22 Nov 2018  路  2Comments  路  Source: codesandbox/codesandbox-client

馃寛 Feature

Hey all! Just tried to import my GH repo and a cryptic error occurred

image

After a while, I realized that my package.json had a trailing comma and was invalid (ref).

Unfortunately, the error message only partly helps with recognizing this error.

:heavy_check_mark: Invalid JSON
:x: Position 315 (if you put all on one line maybe?)
:x: Reference to package.json

I'd love to see a more detailed error message, however, this is a less common error I think :man_shrugging:

GitHub

Most helpful comment

All the messages around importing and committing from Github repos need to be improved :(

All 2 comments

All the messages around importing and committing from Github repos need to be improved :(

Better late than ever but we do have better error messages now and we also have waaay fewer error messages because a lot has been fixed 馃帀

Was this page helpful?
0 / 5 - 0 ratings

Related issues

wojciechczerniak picture wojciechczerniak  路  3Comments

miukimiu picture miukimiu  路  3Comments

faceyspacey picture faceyspacey  路  3Comments

waruyama picture waruyama  路  3Comments

oliversturm picture oliversturm  路  3Comments