system.tag.writeBlocking
and system.opc.writeValues
both return list of qualities indicating the write results. It’s up to you to check these results wherever you make the scripting call.
A bad write result does not generate some kind of other event for you to catch in an event script.