Fixed minor spelling errors in exception messages
Original commit: elastic/x-pack-elasticsearch@7b9294e320
This commit is contained in:
parent
303616b415
commit
8242e25cde
|
@ -529,7 +529,7 @@ public class Watch implements TriggerEngine.Job, ToXContent {
|
||||||
} else if (REASON_FIELD.match(currentFieldName)) {
|
} else if (REASON_FIELD.match(currentFieldName)) {
|
||||||
reason = parser.text();
|
reason = parser.text();
|
||||||
} else {
|
} else {
|
||||||
throw new WatcherException("unknown filed [" + currentFieldName + "] in watch status throttle entry");
|
throw new WatcherException("unknown field [" + currentFieldName + "] in watch status throttle entry");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -550,7 +550,7 @@ public class Watch implements TriggerEngine.Job, ToXContent {
|
||||||
} else if (STATE_FIELD.match(currentFieldName)) {
|
} else if (STATE_FIELD.match(currentFieldName)) {
|
||||||
state = AckStatus.State.valueOf(parser.text().toUpperCase(Locale.ROOT));
|
state = AckStatus.State.valueOf(parser.text().toUpperCase(Locale.ROOT));
|
||||||
} else {
|
} else {
|
||||||
throw new WatcherException("unknown filed [" + currentFieldName + "] in watch status throttle entry");
|
throw new WatcherException("unknown field [" + currentFieldName + "] in watch status throttle entry");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue