mirror of https://github.com/apache/nifi.git
NIFI-7535 add detailed error message when .nar file is not readable
This closes #6056 Signed-off-by: Bence Simon <bsimon@apache.org>
This commit is contained in:
parent
c51f70b6e6
commit
f99298f98e
|
@ -122,6 +122,10 @@ public final class NarUnpacker {
|
|||
final long startTime = System.nanoTime();
|
||||
logger.info("Expanding " + narFiles.size() + " NAR files with all processors...");
|
||||
for (File narFile : narFiles) {
|
||||
if (!narFile.canRead()) {
|
||||
throw new IllegalStateException("Unable to read NAR file: " + narFile.getAbsolutePath());
|
||||
}
|
||||
|
||||
logger.debug("Expanding NAR file: " + narFile.getAbsolutePath());
|
||||
|
||||
// get the manifest for this nar
|
||||
|
|
Loading…
Reference in New Issue