This is an error report.
Screenshot of the error
Error details
like 8.5b, the map of numbers to meanings in the provided code is incorrect, Done is mapped to 2, even though Succeeded is 3, and 2 is Preempted this is especially noticeable in this case, since if the numbers were actually mapped correctly the code would get stuck in a strange infinite loop where canceling the action still waiting for the action to complete (since it waits for get_state to output 3 or higher, and preempted is 2)
