prevent exception dialog becoming too wide
improve exception message