added error string to the output