Skip to content

Provide more descriptive error message for non-argument variable parsing failure.#256

Merged
natecook1000 merged 1 commit into
apple:mainfrom
drewmccormack:main
Jan 5, 2021
Merged

Provide more descriptive error message for non-argument variable parsing failure.#256
natecook1000 merged 1 commit into
apple:mainfrom
drewmccormack:main

Conversation

@drewmccormack
Copy link
Copy Markdown
Contributor

Relates to issue https://forums.swift.org/t/how-to-exclude-members-from-parsing/34325/9

The existing message was completely unhelpful, and even erroneous in the sense that the issue is not related to an argument at all, but to a non-argument. The new message is a stop-gap until the actual problem causing the error is resolved, but it at least gives the user actionable information and makes it clear where the issue lies.

Replace this paragraph with a description of your changes and rationale. Provide links to an existing issue or external references/discussions, if appropriate.

Checklist

  • I've added at least one test that validates that my change is working, if appropriate
  • I've followed the code style of the rest of the project
  • I've read the Contribution Guidelines
  • I've updated the documentation if necessary

@natecook1000
Copy link
Copy Markdown
Member

@swift-ci Please test

@natecook1000
Copy link
Copy Markdown
Member

Thanks, @drewmccormack! I can't find any other path that leads to that error, so this looks like a good message.

@natecook1000
Copy link
Copy Markdown
Member

@swift-ci Please test

@natecook1000 natecook1000 merged commit 41f5fe5 into apple:main Jan 5, 2021
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