diff options
| author | Ryan Dahl <ry@tinyclouds.org> | 2020-03-05 08:30:41 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-03-05 08:30:41 -0500 |
| commit | 54a1688868810af0ef16f5c186dfb839f2fce23f (patch) | |
| tree | 4aa8a2a1f1b9856c3d242e4a891645fda361767a /cli/ops/fs_events.rs | |
| parent | 444b1ab68efdf0ceb36dc4a495ac83c809e15b2b (diff) | |
Allow BadResource errors to take a custom message (#4251)
Diffstat (limited to 'cli/ops/fs_events.rs')
| -rw-r--r-- | cli/ops/fs_events.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cli/ops/fs_events.rs b/cli/ops/fs_events.rs index 21e402344..9603c3b90 100644 --- a/cli/ops/fs_events.rs +++ b/cli/ops/fs_events.rs @@ -109,7 +109,7 @@ pub fn op_fs_events_poll( let resource_table = &mut state.borrow_mut().resource_table; let watcher = resource_table .get_mut::<FsEventsResource>(rid) - .ok_or_else(OpError::bad_resource)?; + .ok_or_else(OpError::bad_resource_id)?; watcher .receiver .poll_recv(cx) |
