Clarify output directory has to exist already

This commit is contained in:
Vadim Peretokin 2023-03-07 07:58:30 +01:00 committed by GitHub
parent 5eca02f879
commit 9943625df7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 16 additions and 16 deletions

View File

@ -133,7 +133,7 @@ public class ValidationService {
} else {
File dir = new File(cliContext.getOutput());
if (!dir.isDirectory()) {
throw new Error("THe output location "+dir.getAbsolutePath()+" must be a directory for the output style "+renderer.getStyleCode());
throw new Error("The output location "+dir.getAbsolutePath()+" must be an existing directory for the output style "+renderer.getStyleCode());
}
renderer.setFolder(dir);
}