diff --git a/CHANGELOG.md b/CHANGELOG.md index f234ff8508..54c8867c4a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -20,6 +20,7 @@ Features listed in the internal section are not ready to use but, in the spirit ### Bug fixes: - Replicated references to newly created dynamic subobjects will now be resolved correctly. +- Cloud deployment flow will now correctly report errors when a deployment fails to launch due to a missing assembly. ## [`0.8.0-preview`] - 2019-12-17 diff --git a/SpatialGDK/Build/Programs/Improbable.Unreal.Scripts/DeploymentLauncher/DeploymentLauncher.cs b/SpatialGDK/Build/Programs/Improbable.Unreal.Scripts/DeploymentLauncher/DeploymentLauncher.cs index 2f977527cc..93864ec6e0 100644 --- a/SpatialGDK/Build/Programs/Improbable.Unreal.Scripts/DeploymentLauncher/DeploymentLauncher.cs +++ b/SpatialGDK/Build/Programs/Improbable.Unreal.Scripts/DeploymentLauncher/DeploymentLauncher.cs @@ -189,6 +189,7 @@ private static int CreateDeployment(string[] args) { Console.WriteLine( $"Unable to launch the deployment(s). This is likely because the project '{projectName}' or assembly '{assemblyName}' doesn't exist."); + return 1; } else { diff --git a/SpatialGDK/Source/SpatialGDKEditor/Private/SpatialGDKEditorCloudLauncher.cpp b/SpatialGDK/Source/SpatialGDKEditor/Private/SpatialGDKEditorCloudLauncher.cpp index a147fce9c6..8de15eb7d1 100644 --- a/SpatialGDK/Source/SpatialGDKEditor/Private/SpatialGDKEditorCloudLauncher.cpp +++ b/SpatialGDK/Source/SpatialGDKEditor/Private/SpatialGDKEditorCloudLauncher.cpp @@ -48,6 +48,10 @@ bool SpatialGDKCloudLaunch() if (OutCode != 0) { UE_LOG(LogSpatialGDKEditorCloudLauncher, Error, TEXT("Cloud Launch failed with code %d: %s"), OutCode, *OutString); + if (!OutErr.IsEmpty()) + { + UE_LOG(LogSpatialGDKEditorCloudLauncher, Error, TEXT("%s"), *OutErr); + } bSuccess = false; } @@ -76,6 +80,10 @@ bool SpatialGDKCloudStop() if (OutCode != 0) { UE_LOG(LogSpatialGDKEditorCloudLauncher, Error, TEXT("Cloud Launch failed with code %d: %s"), OutCode, *OutString); + if (!OutErr.IsEmpty()) + { + UE_LOG(LogSpatialGDKEditorCloudLauncher, Error, TEXT("%s"), *OutErr); + } bSuccess = false; }