summaryrefslogtreecommitdiff
path: root/src/errors.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/errors.rs')
-rw-r--r--src/errors.rs5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/errors.rs b/src/errors.rs
index ab6504e64..0f5320348 100644
--- a/src/errors.rs
+++ b/src/errors.rs
@@ -150,10 +150,7 @@ impl From<hyper::Error> for DenoError {
}
pub fn bad_resource() -> DenoError {
- new(
- ErrorKind::BadFileDescriptor, // TODO Rename to BadResource
- String::from("bad resource id"),
- )
+ new(ErrorKind::BadResource, String::from("bad resource id"))
}
pub fn permission_denied() -> DenoError {