Fix missing space in error message#2619
Conversation
|
Looks like I broke the expectations of the tests. I can either drop that part of the patch or update the tests -- which would you prefer? |
|
Sorry for the delay, winter break is getting in the way of my rust work 😁 I think that as you're improving error messages, it makes most sense to adjust the tests to match your improved messages, however it'll be worth checking each time you update the tests to ensure that the resulting message actually does look better once in context. Most rustup tests don't look for the exact message so you likely won't have to adjust many. Thank you for this. |
A followup to 5414c42 which didn't fix every codepath.
Also remove duplicated code.
|
@kinnison No worries, enjoy your vacation :) I updated the test expectations |
kinnison
left a comment
There was a problem hiding this comment.
This looks good, thank you 👍
This PR is 2 commits. The first simply fixes and issue that wasn't totally resolved by 5414c42 (the other branch of the "if" statement wasn't covered). The second goes further and does some cleanup that I thought would be worthwhile (removing duplicated code, making the channel quoted as in
unavailable for download for channel 'beta', making the use of newline more consistent, etc.).new behavior: left
