From 2508480465a25d5d87c407081feb6160f9707cab Mon Sep 17 00:00:00 2001 From: diskkid Date: Thu, 16 May 2019 03:50:54 +0900 Subject: Add error handling to dispatch_minimal::ops::read/write (#2349) --- cli/errors.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'cli/errors.rs') 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), -- cgit v1.2.3