print hash if anything goes wrong