Skip to content

Print nicer error when failing to load project config #427

@bmonkman

Description

@bmonkman

log.Panicf("failed to read config: %v", err)
}
err = yaml.Unmarshal(data, &config)
if err != nil {
log.Panicf("failed to parse config: %v", err)

This is a fairly common failure case and it should be pretty obvious to the user how to resolve it, there's no need for the stack trace we get with log.Panicf, let's use exit.Fatal instead.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementgood first issueGood first ticket, minimal dependencieszero-applyTickets related to the zero apply commandzero-createTickets related to the zero create command

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions