Skip to content

fix(nargo): Indicate which TOML file is missing package name#2159

Merged
TomAFrench merged 1 commit intophated/entry-pathfrom
phated/better-name-error
Aug 4, 2023
Merged

fix(nargo): Indicate which TOML file is missing package name#2159
TomAFrench merged 1 commit intophated/entry-pathfrom
phated/better-name-error

Conversation

@phated
Copy link
Contributor

@phated phated commented Aug 3, 2023

Description

Problem*

Resolves #2086

Summary*

This relaxes the TOML parsing around package name and moves validation into resolve_to_package to provide better error messages to the user that contain the toml file missing the name field.

I also removed the TODO since we should just keep this validation logic going forward.

Documentation

  • This PR requires documentation updates when merged.

    • I will submit a noir-lang/docs PR.
    • I will request for and support Dev Rel's help in documenting this PR.

Additional Context

PR Checklist*

  • I have tested the changes locally.
  • I have formatted the changes with Prettier and/or cargo fmt on default settings.

@phated phated requested review from TomAFrench and kobyhallx August 3, 2023 22:08
@TomAFrench TomAFrench merged commit 4fb6ead into phated/entry-path Aug 4, 2023
@TomAFrench TomAFrench deleted the phated/better-name-error branch August 4, 2023 09:09
@phated phated restored the phated/better-name-error branch August 4, 2023 14:49
phated added a commit that referenced this pull request Aug 4, 2023
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