Adding more usable diagnostic otuput to errors