print response on error

actually working this time.