Improve ifError and stack displaying