Skip to content

Commit f8150dd

Browse files
committed
fix stack error message
1 parent 609c23b commit f8150dd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

session.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,15 +160,15 @@ def Tracked(command):
160160
current_pop_seq = Subsequence()
161161
else:
162162
current_push_seq.add_command(stack_overflow)
163-
current_pop_seq.add_command(stack_overflow)
163+
current_pop_seq.add_command(stack_underflow)
164164
self.add_subsequence(current_push_func, current_push_seq)
165165
self.add_subsequence(current_pop_func, current_pop_seq)
166166
current_push_func = next_push_func
167167
current_pop_func = next_pop_func
168168

169169
if one_function:
170170
current_push_seq.add_command(stack_overflow)
171-
current_pop_seq.add_command(stack_overflow)
171+
current_pop_seq.add_command(stack_underflow)
172172
self.add_subsequence(current_push_func, push_stack)
173173
self.add_subsequence(current_pop_func, pop_stack)
174174

0 commit comments

Comments
 (0)