Skip to content

Commit

Permalink
Fix exception for unsupported fs operation
Browse files Browse the repository at this point in the history
  • Loading branch information
ia3andy committed Jul 19, 2024
1 parent 2db2c0f commit d4297bd
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,7 @@
import java.io.IOException;
import java.io.InputStream;
import java.io.UncheckedIOException;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.StandardCopyOption;
import java.nio.file.StandardOpenOption;
import java.nio.file.*;
import java.time.Instant;
import java.util.*;
import java.util.function.Function;
Expand Down Expand Up @@ -280,7 +277,7 @@ static void createSymbolicLinkOrFallback(BuildProducer<HotDeploymentWatchedFileB
.setRestartNeeded(false)
.setLocation(webAsset.resourceName())
.build());
} catch (UnsupportedOperationException e) {
} catch (FileSystemException e) {
enableBundlingWatch = false;
LOGGER.warn(
"Creating a symbolic link was not authorized on this system. It is required by the Web Bundler to allow filesystem watch. As a result, Web Bundler live-reload will use a scheduler as a fallback.\n\nTo resolve this issue, please add the necessary permissions to allow symbolic link creation.");
Expand Down

0 comments on commit d4297bd

Please sign in to comment.