print error messages in sync