mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-30 09:14:59 +00:00
Modify the cmd_edit_format
method to provide a more informative error message when an invalid edit format is provided.
This commit is contained in:
parent
39170f5639
commit
c9003c598f
1 changed files with 2 additions and 2 deletions
|
@ -44,7 +44,7 @@ class Commands:
|
|||
models.sanity_check_models(self.io, model)
|
||||
raise SwitchCoder(main_model=model)
|
||||
|
||||
def cmd_mode(self, args):
|
||||
def cmd_edit_format(self, args):
|
||||
"Switch to a new editing mode"
|
||||
|
||||
ef = args.strip()
|
||||
|
@ -52,7 +52,7 @@ class Commands:
|
|||
|
||||
if ef not in valid_formats:
|
||||
self.io.tool_error(
|
||||
f"Invalid edit format: {ef}. Valid formats are: {', '.join(valid_formats)}"
|
||||
f"Edit format \"{ef}\" should be one of: {', '.join(valid_formats)}"
|
||||
)
|
||||
return
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue