From c6d3ede57e9015df1003c9b81ef03f90c87cb4b6 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 28 Apr 2019 20:48:57 +0530 Subject: [PATCH] Fix show_error kitten --title not working --- kittens/show_error/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kittens/show_error/main.py b/kittens/show_error/main.py index 7a75dd6ae..ff936e56a 100644 --- a/kittens/show_error/main.py +++ b/kittens/show_error/main.py @@ -17,10 +17,10 @@ The title for the error message. def real_main(args): + msg = 'Show an error message' + args, items = parse_args(args[1:], OPTIONS, '', msg, 'hints') error_message = sys.stdin.buffer.read().decode('utf-8') sys.stdin = open(os.ctermid()) - msg = 'Show an error message' - args, items = parse_args(args, OPTIONS, '', msg, 'hints') print(styled(args.title, fg_intense=True, fg='red', bold=True)) print() print(error_message)