Append error message to r logger when script parsing exception occurs