+1
I always create an “admin-log” datatype, where I can store this kind of data. Fiels are :
So you can set an event like @NoCodePhill said “when an handled error occurs” and create an admin log, with label “login error” and data “current workflow error message / current workflow code” to snapshot it 