Skip to content

Prevent a fetcher_config error message from being printed#2650

Open
bridadan wants to merge 1 commit into
google:mainfrom
bridadan:fix_fetch_config_error_message
Open

Prevent a fetcher_config error message from being printed#2650
bridadan wants to merge 1 commit into
google:mainfrom
bridadan:fix_fetch_config_error_message

Conversation

@bridadan
Copy link
Copy Markdown
Collaborator

@bridadan bridadan commented Jun 3, 2026

The following message is always printed when calling cvd create:

Could not read config file /mnt/external_ssd/main/out/target/product/vsoc_x86_64/fetcher_config.json: * Line 1, Column 1
Syntax error: value, object or array expected.

However, this file never exists (at least in my development setup). So add a check to ensure the file exists first before trying to parse it.

Bug: 519542446
Test: cvd create

The following message is always printed when calling `cvd create`:

Could not read config file /mnt/external_ssd/main/out/target/product/vsoc_x86_64/fetcher_config.json: * Line 1, Column 1
  Syntax error: value, object or array expected.

However, this file never exists (at least in my development setup). So
add a check to ensure the file exists first before trying to parse it.

Bug: 519542446
Test: cvd create
@bridadan bridadan requested a review from Databean June 3, 2026 13:57
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.

1 participant