summaryrefslogtreecommitdiff
path: root/cli/ops/resources.rs
diff options
context:
space:
mode:
Diffstat (limited to 'cli/ops/resources.rs')
-rw-r--r--cli/ops/resources.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/cli/ops/resources.rs b/cli/ops/resources.rs
index 1fef4a530..787894c2c 100644
--- a/cli/ops/resources.rs
+++ b/cli/ops/resources.rs
@@ -1,5 +1,6 @@
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
use super::dispatch_json::{JsonOp, Value};
+use crate::op_error::OpError;
use crate::ops::json_op;
use crate::state::State;
use deno_core::*;
@@ -12,7 +13,7 @@ fn op_resources(
state: &State,
_args: Value,
_zero_copy: Option<ZeroCopyBuf>,
-) -> Result<JsonOp, ErrBox> {
+) -> Result<JsonOp, OpError> {
let state = state.borrow();
let serialized_resources = state.resource_table.entries();
Ok(JsonOp::Sync(json!(serialized_resources)))