Skip to content

Add FormatError helper and consolidate error rendering #267

@digitalghost-dev

Description

@digitalghost-dev
  • Create cmd/utils/errors.go and add FormatError(message string) string function to centralize the repeated styling.ErrorBorder.Render(styling.ErrorColor.Render("✖ Error!"), ...) pattern

This will replace 10 call sites across validateargs.go, connection.go, cli.go, pokemonflagset.go, and model_input.go

Metadata

Metadata

Assignees

No one assigned

    Labels

    improvementImprovement to an existing feature.

    Projects

    Status

    Completed

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions