Skip to content

fix(userSettings): Don't fail when user settings file is not a valid json #3437

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

Merged
merged 1 commit into from
Mar 12, 2018

Conversation

Fatme
Copy link
Contributor

@Fatme Fatme commented Mar 9, 2018

In case when user executes some command and by some reasons user settings file is not a valid json, {N} CLI throws "Unexpected token in JSON at position 0" error. After that user is not able to execute any cli command until the file exists.

@Fatme Fatme force-pushed the fatme/user-settings-file branch from eab4a8c to 972748e Compare March 9, 2018 11:58
Copy link
Contributor

@rosen-vladimirov rosen-vladimirov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

After updating to correct SHA of the submodule

@dtopuzov
Copy link
Contributor

run ci

…ings file is not a valid json, {N} CLI throws "Unexpected token in JSON at position 0" error. After that user is not able to execute any cli command until the file exists.
@Fatme Fatme force-pushed the fatme/user-settings-file branch from 972748e to c5d7a94 Compare March 12, 2018 13:24
@rosen-vladimirov
Copy link
Contributor

run ci

1 similar comment
@rosen-vladimirov
Copy link
Contributor

run ci

@Fatme Fatme merged commit 7f02140 into master Mar 12, 2018
@Fatme Fatme deleted the fatme/user-settings-file branch March 12, 2018 17:12
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