diff --git a/plugins/wazuh-core/public/services/state/containers/server-host-cluster-info.ts b/plugins/wazuh-core/public/services/state/containers/server-host-cluster-info.ts index f2a78f2892..92f5f59854 100644 --- a/plugins/wazuh-core/public/services/state/containers/server-host-cluster-info.ts +++ b/plugins/wazuh-core/public/services/state/containers/server-host-cluster-info.ts @@ -38,7 +38,7 @@ export class ServerHostClusterInfoStateContainer implements StateContainer { return result; } catch (error) { - this.logger.error(`Error getting data: ${error.message}`); + this.logger.error(`Error getting data: ${(error as Error).message}`); // TODO: implement // const options = { // context: `${AppState.name}.getClusterInfo`, @@ -75,7 +75,7 @@ export class ServerHostClusterInfoStateContainer implements StateContainer { this.logger.debug(`Encoded data was set: ${encodedData}`); } } catch (error) { - this.logger.error(`Error setting data: ${error.message}`); + this.logger.error(`Error setting data: ${(error as Error).message}`); // TODO: implement // const options = { // context: `${AppState.name}.setClusterInfo`,