From 26d1a371c43d46a74803b04d83b9a26fb377899d Mon Sep 17 00:00:00 2001 From: Steven Hartland Date: Wed, 7 Dec 2022 00:21:41 +0000 Subject: [PATCH] chore: improve error message Improve panic error message by describing its function for clarity. --- object.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/object.go b/object.go index 89e29263..f5b7c6cb 100644 --- a/object.go +++ b/object.go @@ -94,7 +94,7 @@ func (o *object) DefaultValue(hint defaultValueHint) Value { } } - panic(o.runtime.panicTypeError()) + panic(o.runtime.panicTypeError("Object.DefaultValue unknown")) } func (o *object) String() string {