display the exception instead of meaningless message

fixes #5659 

@karlitschek @bantu THX