Skip to content

deferred call to os.Exit(exitCode) may hide panics #569

Closed
@pashagolub

Description

Should be

	defer func() {
		if err := recover(); err != nil {
			exitCode = ExitCodeFatalError
			log.GetLogger(ctx).WithField("callstack", string(debug.Stack())).Error(err)
		}
		os.Exit(exitCode)
	}()

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

bugSomething isn't workingpriorityThis issue if of high priority, but not critical

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions