Skip to content

Commit

Permalink
add logging for invalid links
Browse files Browse the repository at this point in the history
  • Loading branch information
kwin committed Oct 27, 2022
1 parent f97c516 commit 1af093b
Showing 1 changed file with 7 additions and 1 deletion.
Expand Up @@ -253,7 +253,13 @@ public static boolean isLinkValid( URI url, Path baseDirectory )
}
else
{
return Files.exists( baseDirectory.resolve( url.getPath() ) );
Path file = baseDirectory.resolve( url.getPath() );
boolean exists = Files.exists( file );
if ( !exists )
{
LOG.warn( "Could not find file given through '{}' in resolved path '{}'", url, file );
}
return exists;
}
}
}

0 comments on commit 1af093b

Please sign in to comment.