Skip to content
This repository has been archived by the owner on Aug 12, 2022. It is now read-only.

fix: Diag detail #243

Merged
merged 1 commit into from
May 6, 2022
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
2 changes: 1 addition & 1 deletion provider/diag/error.go
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ func WithResourceId(id []string) BaseErrorOption {

func WithDetails(detail string, args ...interface{}) BaseErrorOption {
return func(e *BaseError) {
if !e.noOverwrite || e.detail != "" {
if !e.noOverwrite || e.detail == "" {
e.detail = fmt.Sprintf(detail, args...)
}
}
Expand Down