GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||||||||||||
GeezerVison is showing github.com — gh-133439: Fix the error message in the sqlite3 CLI by StanFromIreland · Pull Request #133807 · python/cpython Conversation
|
|
Should the error message not be consistent with all other cpython error messages? I think it is still better to use |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
I guess so. I actually expected |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Co-authored-by: Bénédikt Tran <[email protected]>
|
While working on something else I realized the current error message is error-ed even more: Friendly ping @erlend-aasland |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Stan, did you want to include further amendments in this PR? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
I don't mind, I can include it here. All that is to be done for the |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
| t = theme.traceback | ||
| self.write(f'{t.type}Error{t.reset}:{t.message} unknown' | ||
| f'command or invalid arguments: "{unknown}".\n{t.reset}') | ||
| print(f'{t.type}Error{t.reset}:{t.message} unknown command ' |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Note that the banner and tracebacks are written using self.write(). Why not use it here for consistence?
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Errors (35) use print? And so do the other match statements branches.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Other branches output to stdout.
Line 35 perhaps should use self.write() too.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
We can leave execute() for now. It is not worth to rewrite it just for this.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
| print(f'{t.type}Error{t.reset}:{t.message} unknown command ' | |
| self.write(f'{t.type}Error{t.reset}:{t.message} unknown command ' |
It is up to you/Erlend. The box to allow you to commit was checked.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
Thanks @StanFromIreland for the PR, and @encukou for merging it 🌮🎉.. I'm working now to backport this PR to: 3.14. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Sorry, @StanFromIreland and @encukou, I could not cleanly backport this to |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
The original was "backported" to 3.13 but it seems it was modified: cpython/Lib/sqlite3/__main__.py Lines 64 to 65 in 55a34a1
@encukou Should we backport this (to 3.13) too so they are the same? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
GH-135708 is a backport of this pull request to the 3.14 branch. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
…honGH-133807) (cherry picked from commit ecd83e0) Co-authored-by: Stan Ulbrych <[email protected]> Co-authored-by: Bénédikt Tran <[email protected]> Co-authored-by: Serhiy Storchaka <[email protected]>
|
Now that I look at the diff, I don't see a bug to fix in 3.14. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
There is no bug because the author modified the backport, the message is different though. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
…33807) Co-authored-by: Bénédikt Tran <[email protected]> Co-authored-by: Serhiy Storchaka <[email protected]>
…33807) Co-authored-by: Bénédikt Tran <[email protected]> Co-authored-by: Serhiy Storchaka <[email protected]>
…33807) Co-authored-by: Bénédikt Tran <[email protected]> Co-authored-by: Serhiy Storchaka <[email protected]>
…33807) Co-authored-by: Bénédikt Tran <[email protected]> Co-authored-by: Serhiy Storchaka <[email protected]>
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.