This commit is contained in:
Kovid Goyal 2023-10-29 08:50:27 +05:30
parent 778adfcd3d
commit 47836f5086
No known key found for this signature in database
GPG key ID: 06BC317B515ACE7C

View file

@ -1962,12 +1962,12 @@ def create_special_window_for_show_error(self, title: str, msg: str, overlay_for
if ec != (None, None, None):
import traceback
tb = traceback.format_exc()
cmd = [kitten_exe(), '__show_error__', kitten_exe(), '__show_error__', '--title', title]
cmd = [kitten_exe(), '__show_error__', '--title', title]
env = {}
env['KITTEN_RUNNING_AS_UI'] = '1'
env['KITTY_CONFIG_DIRECTORY'] = config_dir
return SpecialWindow(
cmd,
cmd, override_title=title,
stdin=json.dumps({'msg': msg, 'tb': tb}).encode(),
env=env,
overlay_for=overlay_for,