diff --git a/frontend/pages/ManageControlsPage/OSSettings/cards/CustomSettings/components/ProfileUploader/helpers.tsx b/frontend/pages/ManageControlsPage/OSSettings/cards/CustomSettings/components/ProfileUploader/helpers.tsx index d938d033e0..45bda9ce45 100644 --- a/frontend/pages/ManageControlsPage/OSSettings/cards/CustomSettings/components/ProfileUploader/helpers.tsx +++ b/frontend/pages/ManageControlsPage/OSSettings/cards/CustomSettings/components/ProfileUploader/helpers.tsx @@ -88,9 +88,12 @@ export const getErrorMessage = (err: AxiosResponse) => { return generateSecretErrMsg(err); } - if (apiReason.includes("Fleet variable")) { + if ( + apiReason.includes("Fleet variable") && + apiReason.includes("not supported in configuration profiles") + ) { return generateUnsupportedVariableErrMsg(apiReason); } - return apiReason || DEFAULT_ERROR_MESSAGE; + return `Couldn't add. ${apiReason}` || DEFAULT_ERROR_MESSAGE; }; diff --git a/frontend/pages/admin/IntegrationsPage/cards/CertificateAuthorities/components/AddCertAuthorityModal/helpers.tsx b/frontend/pages/admin/IntegrationsPage/cards/CertificateAuthorities/components/AddCertAuthorityModal/helpers.tsx index 9ecb01b402..7e8af67171 100644 --- a/frontend/pages/admin/IntegrationsPage/cards/CertificateAuthorities/components/AddCertAuthorityModal/helpers.tsx +++ b/frontend/pages/admin/IntegrationsPage/cards/CertificateAuthorities/components/AddCertAuthorityModal/helpers.tsx @@ -1,9 +1,11 @@ import React from "react"; -import CustomLink from "components/CustomLink"; +import { LEARN_MORE_ABOUT_BASE_LINK } from "utilities/constants"; import { IDropdownOption } from "interfaces/dropdownOption"; import { getErrorReason } from "interfaces/errors"; +import CustomLink from "components/CustomLink"; + const DEFAULT_CERT_AUTHORITY_OPTIONS: IDropdownOption[] = [ { label: "DigiCert", value: "digicert" }, { @@ -42,7 +44,7 @@ const PRIVATE_KEY_NOT_CONFIGURED_ERROR = ( Private key must be configured.{" "}