vice-error-went-wrong2", [ERRORS.INTERNAL_ERROR]: "backup-service-error-went-wrong2", [ERRORS.UNSUPPORTED_APPLICATION]: "backup-service-error-unsupported-application", }); /** * @param {number} errorCode * Error code from backup-constants.mjs:ERRORS * @returns {string} * L10N ID for error messaging for the given error code; the L10N * ID should have both a `heading` and a `message` attribute */ export function getErrorL10nId(errorCode) { return ERROR_L10N_IDS[errorCode] ?? ERROR_L10N_IDS[ERRORS.UNKNOWN]; } PK