Skip to content

Commit 3e0f372

Browse files
committed
feat: add a warning when an entry provided with "--classpath" does not exists
1 parent cd6caed commit 3e0f372

File tree

1 file changed

+3
-0
lines changed
  • invoker/core/src/main/java/com/google/cloud/functions/invoker/runner

1 file changed

+3
-0
lines changed

invoker/core/src/main/java/com/google/cloud/functions/invoker/runner/Invoker.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -418,6 +418,9 @@ static URL[] classpathToUrls(String classpath) {
418418
urls.addAll(jarsIn(component.substring(0, component.length() - 2)));
419419
} else {
420420
Path path = Paths.get(component);
421+
if(!Files.isRegularFile(path)) {
422+
logger.log(Level.WARNING, "Classpath entry '" + path + "' does not exist");
423+
}
421424
try {
422425
urls.add(path.toUri().toURL());
423426
} catch (MalformedURLException e) {

0 commit comments

Comments
 (0)