fixed error reporting code to see string