Skip to content

fmt.Println(outFile.Name())代码在异常处理代码之前,当出现异常的时候,下方的异常处理代码无法执行。 #1

Description

@xiaobai008

fmt.Println(outFile.Name())代码在异常处理代码之前,当出现异常的时候,下方的异常处理代码无法执行。

建议将其移至
if err != nil {
fmt.Println(err)
return
}
下方

Activity

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

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions