Merge pull request elastic/elasticsearch#206 from mrsolo/fix/spelling

Fixed minor spelling errors in exception messages

Original commit: elastic/x-pack-elasticsearch@ba9be34f23
This commit is contained in:
uboness 2015-04-10 21:09:15 +02:00
commit 7676347bb4
1 changed files with 2 additions and 2 deletions

View File

@ -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");
}
}
}