stackitem: change Bool() to TryBool(), prepare for its failures

This commit is contained in:
Roman Khimov 2020-08-21 20:55:20 +03:00
parent 790693fc6d
commit a7670303e8
7 changed files with 65 additions and 45 deletions

View file

@ -54,8 +54,8 @@ func (c *exceptionHandlingContext) Dup() stackitem.Item {
return c
}
// Bool implements stackitem.Item interface.
func (c *exceptionHandlingContext) Bool() bool {
// TryBool implements stackitem.Item interface.
func (c *exceptionHandlingContext) TryBool() (bool, error) {
panic("can't convert exceptionHandlingContext to Bool")
}