diff options
author | diskkid <disk2id@gmail.com> | 2019-05-16 03:50:54 +0900 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2019-05-15 14:50:54 -0400 |
commit | 2508480465a25d5d87c407081feb6160f9707cab (patch) | |
tree | caba9c9a875886e56be25ecbda80973b71c3cb68 /cli/errors.rs | |
parent | a00fa7056bb6493e3ca010afc4335f099dac0807 (diff) |
Add error handling to dispatch_minimal::ops::read/write (#2349)
Diffstat (limited to 'cli/errors.rs')
-rw-r--r-- | cli/errors.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cli/errors.rs b/cli/errors.rs index 71c14282b..8e57fe5f4 100644 --- a/cli/errors.rs +++ b/cli/errors.rs @@ -225,6 +225,10 @@ pub fn worker_init_failed() -> DenoError { ) } +pub fn no_buffer_specified() -> DenoError { + new(ErrorKind::InvalidInput, String::from("no buffer specified")) +} + #[derive(Debug)] pub enum RustOrJsError { Rust(DenoError), |