Better debugging output on exceptions