From 8242e25cde23cec954e0cb9f4b922e61f12944f4 Mon Sep 17 00:00:00 2001 From: Bill Hwang Date: Fri, 10 Apr 2015 11:58:33 -0700 Subject: [PATCH] Fixed minor spelling errors in exception messages Original commit: elastic/x-pack-elasticsearch@7b9294e3209d7cf9c8abf08eb2c99b2f2f066c81 --- src/main/java/org/elasticsearch/watcher/watch/Watch.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/elasticsearch/watcher/watch/Watch.java b/src/main/java/org/elasticsearch/watcher/watch/Watch.java index 56834092ea7..bc6eb349188 100644 --- a/src/main/java/org/elasticsearch/watcher/watch/Watch.java +++ b/src/main/java/org/elasticsearch/watcher/watch/Watch.java @@ -529,7 +529,7 @@ public class Watch implements TriggerEngine.Job, ToXContent { } else if (REASON_FIELD.match(currentFieldName)) { reason = parser.text(); } 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)) { state = AckStatus.State.valueOf(parser.text().toUpperCase(Locale.ROOT)); } else { - throw new WatcherException("unknown filed [" + currentFieldName + "] in watch status throttle entry"); + throw new WatcherException("unknown field [" + currentFieldName + "] in watch status throttle entry"); } } }