partial implementation of error report
convert error data structure into string report