diff --git a/internal/local/activate.go b/internal/local/activate.go index b1a4d949..26de0f48 100644 --- a/internal/local/activate.go +++ b/internal/local/activate.go @@ -70,11 +70,13 @@ func (service *ProvisioningService) ActivateACM() error { generalSettings, err := service.interfacedWsmanMessage.GetGeneralSettings() if err != nil { + log.Error("failed to get general settings") return utils.WSMANMessageError } getHostBasedSetupResponse, err := service.interfacedWsmanMessage.GetHostBasedSetupService() if err != nil { + log.Error("failed to get host based setup service response") return utils.WSMANMessageError } decodedNonce := getHostBasedSetupResponse.Body.GetResponse.ConfigurationNonce @@ -118,11 +120,13 @@ func (service *ProvisioningService) ActivateACM() error { func (service *ProvisioningService) ActivateCCM() error { generalSettings, err := service.interfacedWsmanMessage.GetGeneralSettings() if err != nil { - return utils.ActivationFailed + log.Error("failed to get general settings") + return utils.WSMANMessageError } _, err = service.interfacedWsmanMessage.HostBasedSetupService(generalSettings.Body.GetResponse.DigestRealm, service.config.Password) if err != nil { - return utils.ActivationFailed + log.Error("host based setup service failed") + return utils.WSMANMessageError } log.Info("Status: Device activated in Client Control Mode") return nil