Pass localization-independent error type in error messages