We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ab3d02a commit 05868ccCopy full SHA for 05868cc
cli/graph_util.rs
@@ -1009,7 +1009,11 @@ impl deno_graph::source::Reporter for FileWatcherReporter {
1009
) {
1010
let mut file_paths = self.file_paths.lock();
1011
if specifier.scheme() == "file" {
1012
- file_paths.push(specifier.to_file_path().unwrap());
+ // Don't trust that the path is a valid path at this point:
1013
+ // https://github.com/denoland/deno/issues/26209.
1014
+ if let Ok(file_path) = specifier.to_file_path() {
1015
+ file_paths.push(file_path);
1016
+ }
1017
}
1018
1019
if modules_done == modules_total {
0 commit comments