-
Notifications
You must be signed in to change notification settings - Fork 5
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
fix up & touch up user facing messages #468
Conversation
.GroupBy( o => $"{o.AccountName}.${o.RoleName}", ( _, entries ) => | ||
.GroupBy( o => (o.AccountName, o.RoleName), ( _, entries ) => |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Somewhat unrelated - this isn't a user-facing message, but it's also a string-related issue.
- Value tuples are preferred when we want to use multiple values as a single key. Converting them to a single string is unnecessary and has more overhead.
- Even if we do want to use a string here, it should've been
A common mistake when using C# interpolated strings.
-$"{o.AccountName}.${o.RoleName}" +$"{o.AccountName}.{o.RoleName}"
Console.Error.Write( $"WARNING: Failed to load the global config file {configFileName}." ); | ||
consoleWriter.WriteWarning( $"WARNING: Failed to load the global config file {configFileName}." ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's hard to reproduce such a failure scenario so it's never manifested, but Console.Error.Write
(without a newline) would've never worked nicely.
throw new BmxException( | ||
$"Okta authentication for user '{username}' in org '{org}'" | ||
+ "failed. Check if org, user, and password is correct" ); | ||
throw new BmxException( $""" | ||
Okta authentication for user '{username}' in org '{org}' failed. | ||
Check if org, user, and password is correct. | ||
""" ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Noticed some minor issues with user-facing messages.
https://desire2learn.atlassian.net/browse/VUL-403