Error codes · Signals and UI state
PW5300
signal_written_outside_handler
The program must hold to this: a signal changes only in a handler.
The decisions behind it
Reading the diagnostic
pw check prints the code in brackets, [PW5300], with the sentence above and the place in your program. Errors and diagnostics explains how to read one, and every code is listed with its rule.