Commit a84c728
committed
more information and care on KeyboardInterrupt
mycli is already _much_ better at cancelling queries on
KeyboardInterrupt, compared to the vendor client. But not perfect --
and sometimes the result is an unfortunate runaway query.
Here we:
* catch the case that "ok" is not in the status string, and emit a
warning in red. Previously we only caught Exceptions.
* add an echo to the debugged path in which cancellation is skipped.
* downgrade the routine cancellation message to blue and add the query
id number.
The first and second changes are intended to help the user notice the
cases in which we fail to interrupt, and know that we failed. The
third change is intended to help in unknown cases, in which we believe
that we succeeded, but didn't interrupt.1 parent ba24678 commit a84c728
2 files changed
+6
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
774 | 774 | | |
775 | 775 | | |
776 | 776 | | |
777 | | - | |
| 777 | + | |
| 778 | + | |
| 779 | + | |
| 780 | + | |
778 | 781 | | |
779 | 782 | | |
780 | 783 | | |
781 | 784 | | |
| 785 | + | |
782 | 786 | | |
783 | 787 | | |
784 | 788 | | |
| |||
0 commit comments