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

remote.nextstrain_dot_org: Fix uninterpolated placeholder in error message #260

Merged
merged 1 commit into from
Feb 28, 2023

Conversation

tsibley
Copy link
Member

@tsibley tsibley commented Feb 28, 2023

When an unknown file was given for upload, the error message incorrectly included the literal string "{files}" instead of replacing it with the actual list of files.

Although this string doesn't need to be an f-string, the other similar error messages below it do, and preserving the parallel construction of the error messages is helpful for readability.

Context

https://support.nextstrain.org/agent/nextstrain/nextstrain/tickets/details/668036000003639001

Testing

  • Correct behaviour after fix locally
  • Checks pass

…ssage

When an unknown file was given for upload, the error message incorrectly
included the literal string "{files}" instead of replacing it with the
actual list of files.

Although this string doesn't need to be an f-string, the other similar
error messages below it do, and preserving the parallel construction of
the error messages is helpful for readability.
@tsibley tsibley requested a review from a team February 28, 2023 00:22
@tsibley tsibley merged commit 2d458c5 into master Feb 28, 2023
@tsibley tsibley deleted the trs/remote/nextstrain.org/upload-unknown-file-error branch February 28, 2023 17:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

2 participants