Thank you for your post.
You may want to add a table to your solution to capture the error messages. For your example, I would include fields:
You can then create an error script for this table that accepts a parameter, adds a record, and enter the information.
At different points in your original scripts, you can have:
If [ Get ( LastError ) > 0 ]
Set Variable [ $$errorstring ; <script name > & "¶" & <layout name> & "¶" & Get ( LastError ) & "¶" & Get ( UserName ) ]
Perform Script [ <script that captures error message> ; Parameter: $$errorstring ]
This should get you pointed in the right direction.
Does anyone know if there is a third-party plug-in?