Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions exit.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,9 @@ func BaseExit(rc Status) {
// The Unknown state is used, since the plugin likely could not determine
// the actual status of whatever was meant to be checked.
func ExitError(err error) {
// Catches Panic if error is nil and outputs the full stacktrace
defer CatchPanic()

Exit(Unknown, fmt.Sprintf("%s (%T)", err.Error(), err))
}

Expand Down
Loading