summaryrefslogtreecommitdiff
path: root/rc/tools/python
diff options
context:
space:
mode:
authorJohannes Altmanninger <aclopte@gmail.com>2023-12-16 09:36:55 +0100
committerJohannes Altmanninger <aclopte@gmail.com>2023-12-16 12:13:20 +0100
commit1ce639f2f990cb9bc005a705ab3b5b39a4a01ad0 (patch)
tree33d06cbf1277c643b284267e32fd07eaf966e34d /rc/tools/python
parent83fb65aef5729167b47c6ec22a57e5bd6ac5a9ae (diff)
rc windowing: with-option to restore option value also after error
Today "with-option foo bar command-that-fails" fails with Error: 1:1: 'evaluate-commands': 1:1: 'with-option': 2:5: 'evaluate-commands': 4:9: 'evaluate-commands': 1:2: 'no-such-command': no such command but leaks the option value. Fix this by resetting the option and rethrowing the error. Unfortunately the original stack trace is lost (questionable behavior inherited from C++?).
Diffstat (limited to 'rc/tools/python')
0 files changed, 0 insertions, 0 deletions