Fixed minor spelling errors in exception messages

Original commit: elastic/x-pack-elasticsearch@7b9294e320
This commit is contained in:
Bill Hwang 2015-04-10 11:58:33 -07:00 committed by mrsolo
parent 303616b415
commit 8242e25cde
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");
}
}
}