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

improve error message for users who pass path to Core_Root instead of CoreRun #1946

Merged
merged 2 commits into from
Mar 18, 2022

Conversation

adamsitnik
Copy link
Member

cc @Maoni0

@adamsitnik adamsitnik added this to the v0.13.2 milestone Mar 17, 2022
logger.WriteLineError($"The provided path to CoreRun: \"{coreRunPath}\" does NOT exist. Please remember that BDN expects path to CoreRun.exe (corerun on Unix), not to Core_Root folder.");
if (Directory.Exists(coreRunPath.FullName))
{
logger.WriteLineError($"The provided path to CoreRun: \"{coreRunPath}\" exists but it's a directory, not an executable. You need to provide path to CoreRun.exe (corerun on Unix), not to the Core_Root folder.");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

perhaps instead of
You need to provide path to CoreRun.exe (corerun on Unix), not to the Core_Root folder.
you could say something like
You need to include CoreRun.exe in the path
? which is really the culprit here.

path is ambiguous - to some people the path to a.exe means c:\dir_a.exe_is_in, to others it means c:\dir_a.exe_is_in\a.exe.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

path is ambiguous - to some people the path to a.exe means c:\dir_a.exe_is_in, to others it means c:\dir_a.exe_is_in\a.exe.

I did not know about that, for me it was always c:\dir_a.exe_is_in\a.exe. Since my understanding of path is the source of the confusion I am going to apply your suggestion.

@Maoni0
Copy link
Member

Maoni0 commented Mar 18, 2022

thanks a lot for making this clearer!

@adamsitnik adamsitnik merged commit 228a6ad into master Mar 18, 2022
@adamsitnik adamsitnik deleted the improveErrorMsg branch March 18, 2022 08:53
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