-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
gh-133439: Fix the error message in the sqlite3 CLI #133807
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
Changes from 1 commit
6b59a0b
6980619
6cb0432
1c6cf80
97d002d
c2ed7f1
7170ad9
fed7c0a
e8fde8d
4dcd379
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -69,8 +69,9 @@ def runsource(self, source, filename="<input>", symbol="single"): | |||||
case "": | ||||||
pass | ||||||
case _ as unknown: | ||||||
print("Error: unknown command or invalid arguments:" | ||||||
f' "{unknown}"', file=sys.stderr) | ||||||
t = theme.traceback | ||||||
print(f'{t.type}Error{t.reset}:{t.message} unknown command ' | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Note that the banner and tracebacks are written using There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Errors (35) use print? And so do the other match statements branches. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Other branches output to stdout. Line 35 perhaps should use There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We can leave There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
It is up to you/Erlend. The box to allow you to commit was checked. |
||||||
f'or invalid arguments: "{unknown}"{t.reset}', file=sys.stderr) | ||||||
StanFromIreland marked this conversation as resolved.
Show resolved
Hide resolved
|
||||||
else: | ||||||
if not sqlite3.complete_statement(source): | ||||||
return True | ||||||
|
Uh oh!
There was an error while loading. Please reload this page.