Skip to content

Conversation

@gabrieldonadel
Copy link
Member

@gabrieldonadel gabrieldonadel commented Feb 16, 2024

Why

When a cli error occurs instead of the error message being properly displayed we show a prompt saying "unexpected token E"

image

How

Electron adds a prefix to the error message, so we need to filter it out in order to parse the JSON object

Test Plan

image

Base automatically changed from @gabrieldonadel/electron-onboarding to main February 16, 2024 20:25
@gabrieldonadel gabrieldonadel force-pushed the @gabrieldonadel/electron-fix-error-parsing branch from 0b045aa to 7219792 Compare February 16, 2024 20:30
@gabrieldonadel gabrieldonadel marked this pull request as ready for review February 16, 2024 20:32
@gabrieldonadel gabrieldonadel merged commit af737af into main Feb 18, 2024
@gabrieldonadel gabrieldonadel deleted the @gabrieldonadel/electron-fix-error-parsing branch February 18, 2024 09:14
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 this pull request may close these issues.

3 participants