Print output when exiting with error
Change FieldValue to a union
Add STRING field