Skip to content
This repository has been archived by the owner on Feb 16, 2024. It is now read-only.

Bug: InvalidOperation does not use correct error message #521

Open
johannesvollmer opened this issue Sep 27, 2022 · 1 comment
Open

Bug: InvalidOperation does not use correct error message #521

johannesvollmer opened this issue Sep 27, 2022 · 1 comment

Comments

@johannesvollmer
Copy link

johannesvollmer commented Sep 27, 2022

The error message uses a variable name inside of a string, instead of the actual value in the variable.

Should be new InvalidOperationException(Strings_Linq.NO_ELEMENTS)
where NO_ELEMENTS = "Source sequence doesn't contain any elements."

but is new InvalidOperationException("Strings_Linq.NO_ELEMENTS").

possibly also here

@qipa
Copy link

qipa commented Sep 27, 2022 via email

# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants