summaryrefslogtreecommitdiff
path: root/core/error.rs
diff options
context:
space:
mode:
Diffstat (limited to 'core/error.rs')
-rw-r--r--core/error.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/core/error.rs b/core/error.rs
index 563d8ed5e..a269d637f 100644
--- a/core/error.rs
+++ b/core/error.rs
@@ -59,6 +59,10 @@ pub fn resource_unavailable() -> AnyError {
)
}
+pub fn null_opbuf() -> AnyError {
+ type_error("expected non-null op buffer arg")
+}
+
/// A simple error type that lets the creator specify both the error message and
/// the error class name. This type is private; externally it only ever appears
/// wrapped in an `AnyError`. To retrieve the error class name from a wrapped