CardStock is a cross-platform tool for quickly and easily building programs. It provides a drawing-program-like editor for visually laying out your programs' parts, and a code editor for adding event-driven python code.
Summary
Prior to this change, using GotoCard with an out of bounds index
resulted in a python backtrace, hard-to-read (for new programmers)
error, and the error not being added to the errors buffer (because it
happened on main thread). After the change, error message is descriptive
and added to errors buffer.
Test Plan
To reproduce, simply use GotoCard(100) in an event handler in the
default/readme stack
Summary Prior to this change, using GotoCard with an out of bounds index resulted in a python backtrace, hard-to-read (for new programmers) error, and the error not being added to the errors buffer (because it happened on main thread). After the change, error message is descriptive and added to errors buffer.
Test Plan To reproduce, simply use GotoCard(100) in an event handler in the default/readme stack