Print error messages after pdf download