Skip to content

fix(compute): correct confusing error for invalid fastly.toml - #1916

Open
WhiteAbeLincoln wants to merge 1 commit into
mainfrom
abe/file-not-found-error
Open

WhiteAbeLincoln wants to merge 1 commit into
mainfrom
abe/file-not-found-error

Conversation

@WhiteAbeLincoln

@WhiteAbeLincoln WhiteAbeLincoln commented Sep 25, 2026 •

Copy link
Copy Markdown

Change summary

When a fastly.toml file is present but missing a name field, the fastly compute deploy command would return a confusing "file not found" error. This was due to the use of the ErrReadingManifest error, which was previously used for all sorts of manifest errors, but was changed but the wording
was changed PR #1556 to be specific to not found errors

The fix is to return a ErrMissingManifestName in these situations, and we additionally ensure that the --package flag remediation is returned wherever it is relevant.

All Submissions:

  • Have you followed the guidelines in our Contributing document?
  • Have you checked to ensure there aren't other open Pull Requests for the same update/change?

Changes to Core Features:

  • Have you written new tests for your core changes, as applicable?
  • Have you successfully run tests with your changes locally?

User Impact

Fixes confusing error, which admittedly only occurs in rare cases.

Are there any considerations that need to be addressed for release?

When a fastly.toml file is present but missing a `name` field, the
`fastly compute deploy` command would return a confusing "file not found"
error. This was due to the use of the `ErrReadingManifest` error, which
was previously used for all sorts of manifest errors, but the wording
was changed PR #1556 to be specific to not found errors.

The fix is to return a `ErrMissingManifestName` in these situations, and
we additionally ensure that the `--package` flag remediation is returned
wherever it is relevant.
@WhiteAbeLincoln WhiteAbeLincoln changed the title Fix confusing error for invalid fastly.toml fix(compute): correct confusing error for invalid fastly.toml Sep 25, 2026
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