Skip to content

Commit

Permalink
chore: improve error message (robertkrimen#484)
Browse files Browse the repository at this point in the history
Improve panic error message by describing its function for clarity.
  • Loading branch information
stevenh authored Dec 7, 2022
1 parent 5d81e9e commit 802621d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion object.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 802621d

Please sign in to comment.