Skip to content

Commit

Permalink
fix missing quote in --key error message (#5344)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidism authored Dec 13, 2023
2 parents b97165d + 1d5abfa commit 05eebe3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ Version 3.0.1
Unreleased

- Correct type for ``path`` argument to ``send_file``. :issue:`5230`
- Fix a typo in an error message for the ``flask run --key`` option. :pr:`5344`


Version 3.0.0
Expand Down
4 changes: 3 additions & 1 deletion src/flask/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -795,7 +795,9 @@ def _validate_key(ctx, param, value):

if is_context:
raise click.BadParameter(
'When "--cert" is an SSLContext object, "--key is not used.', ctx, param
'When "--cert" is an SSLContext object, "--key" is not used.',
ctx,
param,
)

if not cert:
Expand Down

0 comments on commit 05eebe3

Please sign in to comment.