Skip to content

More informative error message on attempt to delete default branch #9224

Open
@DGoettlich

Description

@DGoettlich

Hi!

I tried to delete (change) the main branch which I now understand is not possible. But perhaps the error message could reflect that:

Command:

lakectl branch delete lakefs:///main -y

Current error message:

http:///api/v1/repositories//branches/main giving up after 5 attempt(s)
Error executing command.

Possible alternative:

Error executing command: you are trying to delete the default branch, which is not supported.

All the best!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions