Skip to content
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

The parser must throw an exception with all the errors encountered #17

Closed
MrDave1999 opened this issue Jan 10, 2022 · 1 comment
Closed
Labels
behavior change Change behavior of a function
Milestone

Comments

@MrDave1999
Copy link
Owner

For example:

string env = @"
       This is an error.
       KEY1=VAL
       =VAL
       KEY2=${KEY3}
";
new EnvParser().Parse(env);

There are three errors in the data source:

  • The line: This is an error. does not have a key-value pair format.
  • The line =VAL has a key with empty string.
  • The line KEY2=${KEY3} has an embedded variable that does not exist in the current process.

The parser should throw an exception with the three errors found instead of doing it one at a time.

@MrDave1999 MrDave1999 added feature New feature or request behavior change Change behavior of a function and removed feature New feature or request labels Jan 10, 2022
@MrDave1999
Copy link
Owner Author

This issue is resolved by PR #18

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
behavior change Change behavior of a function
Projects
None yet
Development

No branches or pull requests

1 participant