borrow out of handles: change error name and describe behavior in comment

This commit is contained in:
Pat Hickey
2020-05-21 12:14:53 -07:00
parent 37514b730f
commit ba82ddcf37
2 changed files with 17 additions and 3 deletions

View File

@@ -15,8 +15,8 @@ pub enum GuestError {
PtrNotAligned(Region, u32),
#[error("Pointer already borrowed: {0:?}")]
PtrBorrowed(Region),
#[error("Borrow checker out of memory")]
BorrowCheckerOOM,
#[error("Borrow checker out of handles")]
BorrowCheckerOutOfHandles,
#[error("Slice length mismatch")]
SliceLengthsDiffer,
#[error("In func {funcname}:{location}:")]