print error to errorstream