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

Minor issue related to platform dependent line breaks, e.g. in error messages #70

Closed
maettu-this opened this issue Jun 20, 2017 · 2 comments

Comments

@maettu-this
Copy link
Collaborator

Hi Oleg,

Minor issue related to the following code:

throw new FileNotFoundException(string.Format("Could not find file \"{0}\".\nEnsure it is in one of the CS-Script search/probing directories.", file));

\n may not be detected as good-enough line break, in my case resulting in an error message with neither line break nor space:

System.IO.FileNotFoundException: Could not find file "..\CommunicationObject.cs".Ensure it is in one of the CS-Script search/probing directories.

I suggest to use Environment.NewLine in such cases. Note that this may apply to several other locations.

Best regards,
Matthias

oleg-shilo added a commit that referenced this issue Jun 21, 2017
@oleg-shilo
Copy link
Owner

Of course. :)
Done. Txs.

@maettu-this
Copy link
Collaborator Author

Verified, thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants