diff options
Diffstat (limited to 'cli/ops/tty.rs')
-rw-r--r-- | cli/ops/tty.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cli/ops/tty.rs b/cli/ops/tty.rs index b803d99fb..69ac66688 100644 --- a/cli/ops/tty.rs +++ b/cli/ops/tty.rs @@ -68,7 +68,7 @@ pub fn op_set_raw( let state = state_.borrow_mut(); let resource = state.resource_table.get::<StreamResource>(rid); if resource.is_none() { - return Err(OpError::bad_resource()); + return Err(OpError::bad_resource_id()); } // For now, only stdin. @@ -113,7 +113,7 @@ pub fn op_set_raw( let mut state = state_.borrow_mut(); let resource = state.resource_table.get_mut::<StreamResource>(rid); if resource.is_none() { - return Err(OpError::bad_resource()); + return Err(OpError::bad_resource_id()); } if is_raw { @@ -197,7 +197,7 @@ pub fn op_isatty( let state = state_.borrow_mut(); if !state.resource_table.has(rid) { - return Err(OpError::bad_resource()); + return Err(OpError::bad_resource_id()); } let resource = state.resource_table.get::<StreamResource>(rid); |