Skip to content

Commit abe8203

Browse files
committed
better err msg
1 parent 9b56038 commit abe8203

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pyteal/ast/abi/tuple.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ def __post_init__(self):
132132

133133
def get_or_store(self, index: int, output: BaseType | None = None) -> Expr:
134134
if not (0 <= index < len(self.value_types)):
135-
raise ValueError("Index outside of range")
135+
raise ValueError(f"Index i outside of range [0, {len(self.value_types)})")
136136

137137
offset = 0
138138
ignoreNext = 0

0 commit comments

Comments
 (0)