mirror of
https://github.com/denoland/deno.git
synced 2024-11-25 15:29:32 -05:00
Replace panic with error on windows for symlink
This commit is contained in:
parent
ba6c617432
commit
1ac80feb1c
1 changed files with 5 additions and 3 deletions
|
@ -2,8 +2,7 @@
|
|||
|
||||
use errors;
|
||||
use errors::permission_denied;
|
||||
use errors::DenoError;
|
||||
use errors::DenoResult;
|
||||
use errors::{DenoError, DenoResult, ErrorKind};
|
||||
use fs as deno_fs;
|
||||
use isolate::Buf;
|
||||
use isolate::Isolate;
|
||||
|
@ -967,7 +966,10 @@ fn op_symlink(
|
|||
}
|
||||
// TODO Use type for Windows.
|
||||
if cfg!(windows) {
|
||||
panic!("symlink for windows is not yet implemented")
|
||||
return odd_future(errors::new(
|
||||
ErrorKind::Other,
|
||||
"symlink for windows is not yet implemented".to_string(),
|
||||
));
|
||||
}
|
||||
|
||||
let inner = base.inner_as_symlink().unwrap();
|
||||
|
|
Loading…
Reference in a new issue