add error message to output for user