diff options
Diffstat (limited to 'usr/austin/eval/abort.go')
-rw-r--r-- | usr/austin/eval/abort.go | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/usr/austin/eval/abort.go b/usr/austin/eval/abort.go index 53747f3e1..38ad2bf62 100644 --- a/usr/austin/eval/abort.go +++ b/usr/austin/eval/abort.go @@ -58,6 +58,14 @@ func (e IndexError) String() string { return fmt.Sprintf("index %d exceeds length %d", e.Idx, e.Len); } +type SliceError struct { + Lo, Hi, Cap int64; +} + +func (e SliceError) String() string { + return fmt.Sprintf("slice [%d:%d]; cap %d", e.Lo, e.Hi, e.Cap); +} + type KeyError struct { Key interface {}; } |