Fix typo in exception message

This commit is contained in:
Ruslan Stelmachenko
2019-03-21 19:53:22 +02:00
committed by Artem Bilan
parent c9e5f99de5
commit 0ce6216e49

View File

@@ -297,7 +297,7 @@ public class FileReadingMessageSource extends AbstractMessageSource<File>
public void start() {
if (!this.running.getAndSet(true)) {
if (!this.directory.exists() && this.autoCreateDirectory && !this.directory.mkdirs()) {
throw new IllegalStateException("Cannot create directory or ita parents: " + this.directory);
throw new IllegalStateException("Cannot create directory or its parents: " + this.directory);
}
Assert.isTrue(this.directory.exists(),
() -> "Source directory [" + this.directory + "] does not exist.");