Skip to content

clio should have a generic panic recovery function #84

Description

@willmurphyscode

What would you like to be added:

A Clio CLI, when it encounters a panic, should recover and print out the stack trace in good order, get the terminal out of raw mode, tear down any TUI as far as possible, and explain to the user to have a bug report.

I think this would require adding a parameter like "bugReportURL" to the App constructor, and then clio could template out a nice panic / recovery screen.

Why is this needed:

Right now, when apps using Clio panic, the TUI isn't torn down and the tty is left in raw mode, leaving the user to figure out what to do with a broken-looking terminal and a weirdly indented stack trace.

Additional context:

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    Status
    Ready

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions