Fixed the printing of stack traces for error maps.