diff options
Diffstat (limited to 'cli/op_error.rs')
-rw-r--r-- | cli/op_error.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cli/op_error.rs b/cli/op_error.rs index 3537d4b28..1d6236c77 100644 --- a/cli/op_error.rs +++ b/cli/op_error.rs @@ -104,6 +104,10 @@ impl OpError { pub fn bad_resource_id() -> OpError { Self::new(ErrorKind::BadResource, "Bad resource ID".to_string()) } + + pub fn invalid_utf8() -> OpError { + Self::new(ErrorKind::InvalidData, "invalid utf8".to_string()) + } } impl Error for OpError {} |