fixing i18n bug I inadvertantly introduced while trying to rework the error-handling code