Skip to content

Commit 220805f

Browse files
authored
fix: json path message (#214)
1 parent fb3a176 commit 220805f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pkg/jsonpatch/jsonpatch.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ func GenerateJsonPath(index int, remove bool, oldConditions, newConditions *core
5757
// If the index is not -1, update the value of the JsonPatch object based on the oldConditions parameter.
5858
if index != -1 {
5959
if newConditions.Message == "" {
60-
jsonPatch.Value.Message = oldConditions.Reason
60+
jsonPatch.Value.Message = oldConditions.Message
6161
}
6262

6363
if newConditions.Reason == "" {

0 commit comments

Comments
 (0)