Clean up strings in the ErrorModule

1) Refactor code slightly so that we're only setting a default `error_msg` at the very end if we don't already have one.
2) Remove a confusing and unused `display_name` that has untranslated string

@nedbat @sarina ?