Skip to content

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

Closed
@pashagolub

Description

@pashagolub

Should be

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

Metadata

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