Skip to content

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

Merged
tsibley merged 1 commit intomasterfrom
trs/remote/nextstrain.org/upload-unknown-file-error
Feb 28, 2023
Merged

remote.nextstrain_dot_org: Fix uninterpolated placeholder in error message#260
tsibley merged 1 commit intomasterfrom
trs/remote/nextstrain.org/upload-unknown-file-error

Conversation

@tsibley
Copy link
Contributor

@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