← 输入框|github.com|刷新
Skip to content

Print nicer error when failing to load project config #427

Closed

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.

Activity

  1. added
    good first issueGood first ticket, minimal dependencies
    zero-createTickets related to the zero create command
    zero-applyTickets related to the zero apply command
    on Oct 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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