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

[menu-bar][electron] Fix MenuBar error message parsing #182

Merged
merged 2 commits into from
Feb 18, 2024

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
2 checks passed
@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.

2 participants