Skip to content

Commit c6d3ede

Browse files
committed
Fix show_error kitten --title not working
1 parent 6037167 commit c6d3ede

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

kittens/show_error/main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@
1717

1818

1919
def real_main(args):
20+
msg = 'Show an error message'
21+
args, items = parse_args(args[1:], OPTIONS, '', msg, 'hints')
2022
error_message = sys.stdin.buffer.read().decode('utf-8')
2123
sys.stdin = open(os.ctermid())
22-
msg = 'Show an error message'
23-
args, items = parse_args(args, OPTIONS, '', msg, 'hints')
2424
print(styled(args.title, fg_intense=True, fg='red', bold=True))
2525
print()
2626
print(error_message)

0 commit comments

Comments
 (0)